Displaying 20 results from an estimated 1000 matches similar to: "[PATCH] extlinux/main.c: Silence warnings"
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
2012 Aug 02
0
[PATCH 2/3] ALPHA: first try to fix adv problem
This is part of some patches to support sectors > 512.
Currently I'm able to boot a Ubuntu kernel but seems that mboot is not working for some reason.
This patch try to fix ADV size problem.
Signed-off-by: Frediano Ziglio <frediano.ziglio at citrix.com>
---
extlinux/main.c | 40 +++++++++++++++++++++++++++++++++++-----
1 files changed, 35 insertions(+), 5 deletions(-)
diff
2015 Nov 13
0
[PATCH 2/4] extlinux: rename ext2_fat_install_file
Rename from ext2_fat_install_file to ext_common_install_file as it is
use for ext, vfat, ntfs and ufs.
Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
---
extlinux/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 5bab712..c446c75 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -595,7 +595,7 @@ static int
2013 Jul 19
0
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
On Fri, 12 Jul, at 08:31:27PM, Raphael S.Carvalho wrote:
> @@ -575,7 +594,7 @@ bail:
> return 1;
> }
>
> -/* btrfs has to install the ldlinux.sys in the first 64K blank area, which
> +/* btrfs/ufs2 has to install the ldlinux.sys in the first 64K blank area, which
> is not managered by btrfs tree, so actually this is not installed as files.
> since the cow
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix file descriptors leak
file descriptors are closed when not in use
Signed-off-by: Imran Zaman <imran.zaman at intel.com>
---
extlinux/main.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 09740bd..55a1495 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -580,6 +580,7 @@ int ext2_fat_install_file(const char *path, int devfd, struct
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
It's needed to enumerate both UFS1/2 since they have different magic numbers
and super block offsets.
Besides, UFS2 can be installed in the 0-64k range like BTRFS, whereas
UFS1 can't.
Signed-off-by: Raphael S.Carvalho <raphael.scarv at gmail.com>
---
extlinux/main.c | 71 +++++++++---
extlinux/ufs.h | 26 ++++
extlinux/ufs_fs.h | 307
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix file descriptors leak
file descriptors are closed when not in use
Signed-off-by: Imran Zaman <imran.zaman at intel.com>
---
extlinux/main.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/extlinux/main.c b/extlinux/main.c
index 09740bd..bc7ded3 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -580,6 +580,7 @@ int ext2_fat_install_file(const char *path, int devfd, struct stat *rst)
goto
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
It's needed to enumerate both UFS1/2 since they have different magic numbers
and super block offsets.
Besides, UFS2 can be installed in the 0-64k range like BTRFS, whereas
UFS1 can't. UFS2 has no cow feature unlike BTRFS.
Signed-off-by: Raphael S.Carvalho <raphael.scarv at gmail.com>
---
extlinux/main.c | 79 ++++++++++---
extlinux/ufs.h | 26 ++++
2014 Dec 24
0
[PATCH 1/8] extlinux/main.c: support unmounted ext2/3/4 filesystem
Add install_file_to_device() to support unmounted ext2, ext3 and ext4
filesystem.
Usage:
$ extlinux -i /dev/sdXN
or
$ extlinux -i file_block
We don't need any new options, it will check whether the target is a
directory or device and decide what to do, it would stop and error if
the device is mounted.
More info:
* It will use libext2fs to read and write the file.
* It will be used when the
2010 Jun 19
1
[PATCH 1/2] linux/syslinux.c: Silence warnings
From: Gene Cumm <gene.cumm at gmail.com>
linux/syslinux.c: Silence warnings from GCC with asprintf's attribute
warn_unused_result in certain glibc versions/patches. Assign it to a
variable and ignore it as the string is already tested for null before
using it.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
diff --git a/libinstaller/setadv.c b/libinstaller/setadv.c
index
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
This pull request contains the XFS filesystem driver for Syslinux.
Due to historical reasons (SGI IRIX's design of disk layouts), the first
sector in the primary AG on XFS filesystems contains the superblock,
which is a problem with BIOSes, since VBRs must be loaded up from the
first sector of the active partition.
Thus, we needed to handle this issue by putting the Syslinux
bootsector
2011 Jul 16
1
crash in extlinux/main
Hi,
I found a bug in extlinux/main.c. Writing a bootloader on a file mounted via
/dev/mapper in Lunix it crashed on me with a segment fault.
The bug is here:
if (!ioctl(devfd, HDIO_GETGEO, &geo)) {
Since we are already called with geo as a pointer the & is wrong as the
pointer itself will be overwritten.
This works:
int get_geometry(int devfd, uint64_t totalbytes, struct
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
2015 Nov 26
0
[syslinux:master] extlinux: code cleanup and simplification
Commit-ID: 82c0ec7b39acb87175ea588f2fa11b21331503c4
Gitweb: http://www.syslinux.org/commit/82c0ec7b39acb87175ea588f2fa11b21331503c4
Author: Nicolas Cornu via Syslinux <syslinux at 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
2015 Nov 18
1
[PATCH] extlinux: code cleanup and simplification
Right sorry 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
2010 Jun 19
0
[PATCH] mtools/syslinux.c: Silence warnings
From: Gene Cumm <gene.cumm at gmail.com>
mtools/syslinux.c: Silence warnings from GCC with asprintf's attribute
warn_unused_result in certain glibc versions/patches. Assign it to a
variable and ignore it as the string is already tested for null before
using it.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
diff --git a/mtools/syslinux.c b/mtools/syslinux.c
index
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
On Thu, 10 Sep 2015 10:55:04 +0300
Imran Zaman via Syslinux <syslinux at zytor.com> wrote:
> devname is put on heap for all cases to avoid memory
> leak, and ease of use in future as well
>
> Signed-off-by: Imran Zaman <imran.zaman at intel.com>
Reviewed-by: Paulo Alcantara <pcacjr at zytor.com>
Thanks,
Paulo
> ---
> extlinux/main.c | 44
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory
leak, and ease of use in future as well
Signed-off-by: Imran Zaman <imran.zaman at intel.com>
---
extlinux/main.c | 50 +++++++++++++++++++++++++++++++++-----------------
1 file changed, 33 insertions(+), 17 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index bc7ded3..74f8d1f 100644
--- a/extlinux/main.c
+++
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
2015 Nov 15
0
[PATCH] extlinux/main.c: typo fixes
Some typo fixes in extlinux/main.c.
None of them effects code execution.
---
extlinux/main.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 6871fb1..26eb43c 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -14,7 +14,7 @@
/*
* extlinux.c
*
- * Install the syslinux boot block on an fat, ntfs, ext2/3/4, btrfs, xfs,
+