search for: ext2_fat_install_file

Displaying 14 results from an estimated 14 matches for "ext2_fat_install_file".

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/extlinu...
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/extlinu...
2012 Aug 02
0
[PATCH 2/3] ALPHA: first try to fix adv problem
...int fd, const char *dir, int devfd) int i; sector_t *sp = sectp; +// FIXME ?? for (i = 0; i < nsect - 2; i++) *sp++ = BTRFS_EXTLINUX_OFFSET/SECTOR_SIZE + i; for (i = 0; i < 2; i++) @@ -410,12 +412,33 @@ int install_bootblock(int fd, const char *device) return 0; } -int ext2_fat_install_file(const char *path, int devfd, struct stat *rst) +static int inc_and_align(int fd, unsigned *pos, unsigned bytes, unsigned align) +{ + char buf[512]; + unsigned left; + + *pos += bytes; + left = *pos % align; + left = (align - left) % align; + while (left > 0) { + unsigned l = le...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix file descriptors leak
...se 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 stat *rst) goto bail; } + close(fd); free(file); free(oldfile); free(c32file); @@ -778,7 +779,7 @@ static char * get_default_subvol(char * rootdir, char * subvol) struct btrfs_ioctl_search_key *sk = &args.key; struct btrfs...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix file descriptors leak
...sed 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 bail; } + close(fd); free(file); free(oldfile); free(c32file); @@ -797,6 +798,8 @@ static char * get_default_subvol(char * rootdir, char * subvol) } if (ret <= 0) { subvol[0] = '\0'; +...
2010 Jun 19
0
[PATCH] extlinux/main.c: Silence warnings
...gn 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/extlinux/main.c b/extlinux/main.c index 6ce3b60..a9645d0 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -512,8 +512,9 @@ int ext2_fat_install_file(const char *path, int devfd, struct stat *rst) char *file; int fd = -1, dirfd = -1; int modbytes; + int ret; - asprintf(&file, "%s%sextlinux.sys", + ret = asprintf(&file, "%s%sextlinux.sys", path, path[0] && path[strlen(path)...
2013 Jul 19
0
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...har * 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 || 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_devi...
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...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 || 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...
2012 Nov 27
0
Syslinux-5.00-pre11
...e from Paulo also got merged this time and there were a bunch of fixes from a Coverity report. This won't be the last prerelease, but we are nearing the end of the 5.00 release cycle, so please do test. Shortlog append below. --- Chen Baozi (14): extlinux: put set_attributes() back to ext2_fat_install_file(). Fix the calculation of the block of the root of the inode B+tree. Add support for 64-bit filesystem compatible struct inode. xfs: rework the logic of xfs_get_ino_core() xfs: Implement dir2_block_find_entry() function. xfs: Implement xfs_dir2_leaf_find_entry() logic....
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.
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...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 || 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...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...bf0ffdf75f359528b01fc9039062e7b34: xfs: Fix the way we check di_mode of an inode (2012-09-02 20:07:20 -0300) Signed-off-by: Paulo Alcantara <pcacjr at zytor.com> ---------------------------------------------------------------- Chen Baozi (14): extlinux: put set_attributes() back to ext2_fat_install_file(). Fix the calculation of the block of the root of the inode B+tree. Add support for 64-bit filesystem compatible struct inode. xfs: rework the logic of xfs_get_ino_core() xfs: Implement dir2_block_find_entry() function. xfs: Implement xfs_dir2_leaf_find_entry() logic....
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
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