search for: xfs_install_file

Displaying 8 results from an estimated 8 matches for "xfs_install_file".

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 a2a396a....
2015 Nov 18
1
[PATCH 4/4] extlinux: simplification by removing one label
2015-11-13 21:19 UTC+01:00, Nicolas Cornu via Syslinux <syslinux at zytor.com>: > Now that xfs_install_file is simplified by using new helpers, we can > remove use of label/goto for clarity. > > Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr> > --- > extlinux/main.c | 18 ++++++------------ > 1 file changed, 6 insertions(+), 12 deletions(-) > > diff --git a/extlinux/ma...
2013 Jan 06
3
[PATCH] extlinux: Make sure ldlinux.sys file is installed
...n the mounted filesystem. Signed-off-by: Paulo Alcantara <pcacjr at zytor.com> --- extlinux/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extlinux/main.c b/extlinux/main.c index 0204caa..f7eeeb7 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -687,6 +687,8 @@ static int xfs_install_file(const char *path, int devfd, struct stat *rst) } close(dirfd); + + syncfs(fd); close(fd); return 0; -- 1.8.1
2015 Nov 13
0
[PATCH 4/4] extlinux: simplification by removing one label
Now that xfs_install_file is simplified by using new helpers, we can remove use of label/goto for clarity. Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr> --- extlinux/main.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 43c1a31.....
2013 Jul 19
0
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...VFAT || fs_type == NTFS > + || fs_type == UFS1) > return ext2_fat_install_file(path, devfd, rst); > - else if (fs_type == BTRFS) > + else if (fs_type == BTRFS || fs_type == UFS2) > return btrfs_install_file(path, devfd, rst); > else if (fs_type == XFS) > return xfs_install_file(path, devfd, rst); > @@ -983,7 +1003,7 @@ static int validate_device(const char *path, int devfd) > struct statfs sfs; > int pfd; > int rv = -1; > - > + > pfd = open(path, O_RDONLY|O_DIRECTORY); > if (pfd < 0) > goto err; > @@ -1063,6...
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS + || fs_type == UFS1) return ext2_fat_install_file(path, devfd, rst); - else if (fs_type == BTRFS) + else if (fs_type == BTRFS || fs_type == UFS2) return btrfs_install_file(path, devfd, rst); else if (fs_type == XFS) return xfs_install_file(path, devfd, rst); @@ -983,7 +1003,7 @@ static int validate_device(const char *path, int devfd) struct statfs sfs; int pfd; int rv = -1; - + pfd = open(path, O_RDONLY|O_DIRECTORY); if (pfd < 0) goto err; @@ -1063,6 +1083,17 @@ static const char *find_device(const c...
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS + || fs_type == UFS1) return ext2_fat_install_file(path, devfd, rst); - else if (fs_type == BTRFS) + else if (fs_type == BTRFS || fs_type == UFS2) return btrfs_install_file(path, devfd, rst); else if (fs_type == XFS) return xfs_install_file(path, devfd, rst); @@ -983,7 +1008,7 @@ static int validate_device(const char *path, int devfd) struct statfs sfs; int pfd; int rv = -1; - + pfd = open(path, O_RDONLY|O_DIRECTORY); if (pfd < 0) goto err; @@ -1063,6 +1088,16 @@ static const char *find_device(const c...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...FS filesystems contains the superblock, which is + * a problem with bootloaders that rely on BIOSes (that load VBRs which are + * (located in the first sector of the partition). + * + * Thus, we need to handle this issue, otherwise Syslinux will damage the XFS's + * superblock. + */ +static int xfs_install_file(const char *path, int devfd, struct stat *rst) +{ + static char file[PATH_MAX]; + int dirfd = -1; + int fd = -1; + + snprintf(file, PATH_MAX, "%s%sldlinux.sys", + path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); + + dirfd...