search for: btrfs_install_file

Displaying 20 results from an estimated 20 matches for "btrfs_install_file".

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 index 6871fb1..a2a396a 1...
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/...
2015 Nov 15
0
[PATCH] extlinux/main.c: typo fixes
...cow feature of btrfs will move the ldlinux.sys every where */ +/* btrfs has to install ldlinux.sys in the first 64K blank area, which + is not managed by btrfs tree, so actually this is not installed as a file, + since the cow feature of btrfs would move the ldlinux.sys file everywhere. */ int btrfs_install_file(const char *path, int devfd, struct stat *rst) { char *file; @@ -662,7 +662,7 @@ int btrfs_install_file(const char *path, int devfd, struct stat *rst) * Due to historical reasons (SGI IRIX's design of disk layouts), the first * sector in the primary AG on XFS filesystems contains the...
2015 Nov 15
0
[PATCH] extlinux/main.c: typo fixes
...cow feature of btrfs will move the ldlinux.sys every where */ +/* btrfs has to install ldlinux.sys in the first 64K blank area, which + is not managed by btrfs tree, so actually this is not installed as a file, + since the cow feature of btrfs would move the ldlinux.sys file everywhere. */ int btrfs_install_file(const char *path, int devfd, struct stat *rst) { char *file; @@ -662,7 +662,7 @@ int btrfs_install_file(const char *path, int devfd, struct stat *rst) * Due to historical reasons (SGI IRIX's design of disk layouts), the first * sector in the primary AG on XFS filesystems contains the...
2015 Nov 26
1
[PATCH] extlinux: code cleanup and simplification
...gt; 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(-) &gt...
2013 Jul 19
0
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...ys 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 feature of btrfs will move the ldlinux.sys every where */ > int btrfs_install_file(const char *path, int devfd, struct stat *rst) The ufs2 portion of this could do with more explanation, since the btrfs reasons don't apply to ufs2, right (ufs2 has no cow feature)? > @@ -955,9 +974,10 @@ static char * get_default_subvol(char * rootdir, char * subvol) > > static i...
2015 Nov 15
2
[PATCH] extlinux/main.c: typo fixes
On Sun, Nov 15, 2015 at 12:30:35PM +0100, Ady SF via Syslinux wrote: > [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(-) > FWIW working on a new version that is `git am` ready, it will have a "sign-off".
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...nstall 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 feature of btrfs will move the ldlinux.sys every where */ int btrfs_install_file(const char *path, int devfd, struct stat *rst) @@ -955,9 +974,10 @@ static char * get_default_subvol(char * rootdir, char * subvol) static int install_file(const char *path, int devfd, struct stat *rst) { - if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS) + if (fs_type == EXT2 |...
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 --git a/extlinux/main.c...
2015 Nov 26
0
[syslinux:master] extlinux: code cleanup and simplification
...t;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 deletions(-) diff --git...
2015 Nov 18
1
[PATCH] extlinux: code cleanup and simplification
...it : 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 --git a/extlinux/main.c...
2015 Nov 15
4
[patch] 6.03 extlinux/main.c typos
On Fri, Nov 13, 2015 at 06:14:36AM +0100, Geert Stappers via Syslinux wrote: > On Fri, Nov 13, 2015 at 05:05:26AM +0200, Ady via Syslinux wrote: > > diff U3 syslinux-6.03/extlinux/main.c syslinux-6.03_typo/extlinux/main.c > > --- syslinux-6.03/extlinux/main.c Mon Oct 06 16:27:44 2014 > > +++ syslinux-6.03_typo/extlinux/main.c Fri Nov 13 02:29:56 2015 > > patch seen >
2015 Nov 13
0
[PATCH 2/4] extlinux: rename ext2_fat_install_file
...le(const char *path, int devfd, struct stat *rst) { if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS || fs_type == UFS1 || fs_type == UFS2) - return ext2_fat_install_file(path, devfd, rst); + return ext_common_install_file(path, devfd, rst); else if (fs_type == BTRFS) return btrfs_install_file(path, devfd, rst); else if (fs_type == XFS) -- 2.6.2
2015 Nov 26
0
[PATCH] extlinux: code cleanup and simplification
..., 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, thanks. Paulo -- Paulo Al...
2015 Nov 13
2
[patch] 6.03 extlinux/main.c typos
...cow feature of btrfs will move the ldlinux.sys every where */ +/* btrfs has to install ldlinux.sys in the first 64K blank area, which + is not managed by btrfs tree, so actually this is not installed as a file, + since the cow feature of btrfs would move the ldlinux.sys file everywhere. */ int btrfs_install_file(const char *path, int devfd, struct stat *rst) { char *file; @@ -661,7 +661,7 @@ * 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 bootloaders that rely on BIOSe...
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...install the ldlinux.sys in the first 64K blank area; + * so actually this is not installed as files. + * + * ufs2: not managed by UFS group descriptor (ufs2 has no cow feature). + * btrfs: not managed by btrfs tree; since the cow feature of btrfs will + * move the ldlinux.sys every where. + */ int btrfs_install_file(const char *path, int devfd, struct stat *rst) { char *file; @@ -955,9 +979,10 @@ static char * get_default_subvol(char * rootdir, char * subvol) static int install_file(const char *path, int devfd, struct stat *rst) { - if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS) + i...
2011 Jul 12
0
[PATCH]: Use a general way to get the default subvolume for btrfs
...tor is from 0~512, the boot image starts after */ #define BTRFS_BOOTSECT_AREA 65536 #define BTRFS_EXTLINUX_OFFSET SECTOR_SIZE -#define BTRFS_SUBVOL_OPT "subvol=" #define BTRFS_SUBVOL_MAX 256 /* By btrfs specification */ static char subvol[BTRFS_SUBVOL_MAX]; @@ -492,6 +491,270 @@ int btrfs_install_file(const char *path, int devfd, struct stat *rst) return 0; } +/* + * * test if path is a subvolume: + * * this function return + * * 0-> path exists but it is not a subvolume + * * 1-> path exists and it is a subvolume + * * -1 -> path is unaccessible + * */ +st...
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Wrote the documentation below. I think it would be good to push the doc to the wiki as soon as the UFS support gets merged. Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install) ----- There is a confusion about the name of this file system, then I decided to contact the author who replied: "The name has always been
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...pwrite(fd, boot_image, modbytes, 0) != modbytes) { - fprintf(stderr, "%s: write failure on %s\n", program, file); - goto bail; - } /* Attempt to set immutable flag and remove all write access */ /* Only set immutable flag if file is owned by root */ @@ -515,6 +588,70 @@ int btrfs_install_file(const char *path, int devfd, struct stat *rst) } /* + * 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 bootloaders that rely on BIOSes (that load VBRs which are + *...
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Change since v1: * Fix bug on dentry structure (thank you specification; btw, sarcasm), and consequently a bug on ufs_readdir. * Add readlink support (applied tests for symlinks whose destionation path were stored in blk pointers and the file itself). * Several improvements. Wrote the documentation below. I think it would be good to