Displaying 10 results from an estimated 10 matches for "write_adv".
2015 Nov 12
1
[PATCH] Unification of ext_(write/read)_adv
...;
+ return ext_read_adv_offset(devfd, boot_image_len);
} else {
err = read_adv(path, name = "ldlinux.sys");
if (err == 2) /* ldlinux.sys does not exist */
@@ -1455,17 +1446,26 @@ static int ext_read_adv(const char *path, int devfd, const char **namep)
}
}
+static int ext_write_adv_offset(int devfd, off_t offset)
+{
+ const size_t adv_size = 2 * ADV_SIZE;
+
+ if (xpwrite(devfd, syslinux_adv, adv_size, offset) != adv_size) {
+ perror("writing adv");
+ return 1;
+ }
+
+ return 0;
+}
+
static int ext_write_adv(const char *path, const char *cfg, int devfd)...
2015 Nov 13
4
[PATCH] extlinux: code cleanup and simplification
Merge btrfs_read_adv and xfs_read_adv into a single generic function
ext_read_adv and split ext_write_adv_offset out of ext_write_adv.
Use those new functions in rewrite_boot_image and btrfs_install_file
where it is actually hardcoded.
Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
---
extlinux/main.c | 113 +++++++++++++++++++++++++++-----------------------------
1 file changed, 55 inse...
2015 Nov 18
0
[PATCH] extlinux: code cleanup and simplification
2015-11-13 20:35 UTC+01:00, Nicolas Cornu via Syslinux <syslinux at zytor.com>:
> Merge btrfs_read_adv and xfs_read_adv into a single generic function
> ext_read_adv and split ext_write_adv_offset out of ext_write_adv.
>
> Use those new functions in rewrite_boot_image and btrfs_install_file
> where it is actually hardcoded.
>
> Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
> ---
> extlinux/main.c | 113
> +++++++++++++++++++++++++++----------------...
2015 Nov 26
0
[syslinux:master] extlinux: code cleanup and simplification
...t zytor.com>
AuthorDate: Fri, 13 Nov 2015 20:35:29 +0100
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Wed, 25 Nov 2015 21:58:23 -0200
extlinux: code cleanup and simplification
Merge btrfs_read_adv and xfs_read_adv into a single generic function
ext_read_adv and split ext_write_adv_offset out of ext_write_adv.
Use those new functions in rewrite_boot_image and btrfs_install_file
where it is actually hardcoded.
Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>
---
extlinux/main.c | 113 +++++++++++++++++++++...
2015 Nov 18
1
[PATCH] extlinux: code cleanup and simplification
...for that ;)
Le Mercredi 18 novembre 2015 7h31, Celelibi <celelibi at gmail.com> a ?crit :
2015-11-13 20:35 UTC+01:00, Nicolas Cornu via Syslinux <syslinux at zytor.com>:
> Merge btrfs_read_adv and xfs_read_adv into a single generic function
> ext_read_adv and split ext_write_adv_offset out of ext_write_adv.
>
> Use those new functions in rewrite_boot_image and btrfs_install_file
> where it is actually hardcoded.
>
> Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
> ---
>? extlinux/main.c | 113
> +++++++++++++++++++++++++++----------------...
2013 May 30
0
Possible bug in ext_read_adv
...(xpread(devfd, syslinux_adv, adv_size, boot_image_len) != adv_size)
return -1;
return syslinux_validate_adv(syslinux_adv) ? 1 : 0;
}
boot_image_len for me is about 53 kb so it read after 53 kb after start
of partition however comment on ext_read_adv state that 2kb is used.
Also in ext_write_adv adv is written with a write_adv which use a file
inside the filesystem so the first function looks wrong to me. Well, we
are not corrupting XFS cause is a read and never a write but surely adv
won't work for xfs code.
I did not test it so I could be possible wrong.
Frediano
2014 Dec 24
0
[PATCH 1/8] extlinux/main.c: support unmounted ext2/3/4 filesystem
...2 @@ static int install_file(const char *path, int devfd, struct stat *rst)
return 1;
}
+
+static int install_file_to_device(const char *device_path, int devfd,
+ int update_only)
+{
+}
+
#ifdef __KLIBC__
static char devname_buf[64];
@@ -1452,15 +1459,26 @@ static int ext_write_adv(const char *path, const char *cfg, int devfd)
return write_adv(path, cfg);
}
-static int install_loader(const char *path, int update_only)
+static int install_loader(const char *path, int update_only, struct stat st)
{
- struct stat st, fst;
+ struct stat fst;
int devfd, rv;...
2016 Jun 04
0
[PATCH] Wedding gift, removing double l from auxilliary
...s: cannot write auxiliary data (need --update)?\n",
file);
else if (err == -1)
efi_perror(L"efi_adv_write:");
diff --git a/libinstaller/advio.c b/libinstaller/advio.c
index e282e11..917714a 100644
--- a/libinstaller/advio.c
+++ b/libinstaller/advio.c
@@ -150,7 +150,7 @@ int write_adv(const char *path, const char *cfg)
}
if (err == -2)
- fprintf(stderr, "%s: cannot write auxilliary data (need --update)?\n",
+ fprintf(stderr, "%s: cannot write auxiliary data (need --update)?\n",
file);
else if (err == -1)
perror(file);
diff --git a/libins...
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512.
Currently it fixes extlinux, MBR for GPT and ext partitions.
Other code is unaffected.
This set of patches has been tested on a read Dell machine running a beta
firmware.
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux,
Merry Christmas! These patches will make extlinux work with umounted
ext2/3/4 filesystem, for example:
$ extlinux -i /dev/sdXN
or
$ extlinux -i file_block
Also it can work with something like:
$ extlinux /dev/sdXN --reset-adv
or
$ extlinux file_block --reset-adv
We don't use a new option (I planed to use "-d" but it is already in
use), it will check whether the