Displaying 8 results from an estimated 8 matches for "rewrite_boot_imag".
Did you mean:
rewrite_boot_image
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 insertions(+), 58 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c...
2015 Nov 26
1
[PATCH] extlinux: code cleanup and simplification
...v 2015 20:35:29 +0100
> Nicolas Cornu via Syslinux <syslinux at zytor.com> wrote:
>
> > 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 insertions...
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
> +++++++++++++++++++++++++++-----------------------------
> 1 file changed, 55 insertions(+), 58 deletions(-)
>
> diff...
2015 Nov 26
0
[syslinux:master] extlinux: code cleanup and simplification
...er: 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 +++++++++++++++++++++++++++-----------------------------
1 file changed, 55 insertions(+), 58 d...
2015 Nov 18
1
[PATCH] extlinux: code cleanup and simplification
...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
> +++++++++++++++++++++++++++-----------------------------
>? 1 file changed, 55 insertions(+), 58 deletions(-)
>
> diff...
2015 Nov 13
4
[PATCH 1/4] extlinux: simplification
Merge installation of ldlinux.c32 from ext2_fat_install_file,
btrfs_install_file and xfs_install_file into one function
ext_install_ldlinux_c32
Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
---
extlinux/main.c | 106 +++++++++++++++++++++-----------------------------------
1 file changed, 40 insertions(+), 66 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index
2015 Nov 26
0
[PATCH] extlinux: code cleanup and simplification
On Fri, 13 Nov 2015 20:35:29 +0100
Nicolas Cornu via Syslinux <syslinux at zytor.com> wrote:
> 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 insertions(+), 58 deletions(-)
Applied, than...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...bootsect_len) {
+ perror("writing xfs bootblock");
+ return 1;
+ }
} else {
if (xpwrite(fd, syslinux_bootsect, syslinux_bootsect_len, 0)
!= syslinux_bootsect_len) {
@@ -396,11 +440,61 @@ int install_bootblock(int fd, const char *device)
return 0;
}
+static int rewrite_boot_image(int devfd, const char *filename)
+{
+ int fd;
+ int ret;
+ int modbytes;
+ char path[PATH_MAX];
+ char slash;
+
+ /* Let's create LDLINUX.SYS file again (if it already exists, of course) */
+ fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT | O_SYNC,
+ S_IRUSR | S_I...