search for: sectmap

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

2012 Aug 02
0
[PATCH 1/3] ALPHA: make sector size dynamic in extlinux
...nsect = (boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT; + nsect = (boot_image_len + sector_size - 1) / sector_size; nsect += 2; /* Two sectors for the ADV */ sectp = alloca(sizeof(sector_t) * nsect); if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS) { - if (sectmap(fd, sectp, nsect)) { + if (sectmap(fd, sectp, nsect, sector_size)) { perror("bmap"); exit(1); } @@ -312,7 +326,7 @@ static int patch_file_and_bootblock(int fd, const char *dir, int devfd) /* Create the modified image in memory */ rv = syslinux_patch(sectp, nsect, opt.s...
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.
2011 Apr 15
0
[GIT PULL] syslinux command-line
...stalled(devfd)) { fprintf(stderr, "%s: no previous syslinux boot sector found\n", program); close(devfd); diff --git a/libinstaller/syslxcom.c b/libinstaller/syslxcom.c index b176f6d..1de85aa 100644 --- a/libinstaller/syslxcom.c +++ b/libinstaller/syslxcom.c @@ -284,3 +284,16 @@ int sectmap(int fd, sector_t *sectors, int nsectors) return sectmap_fib(fd, sectors, nsectors); } + +/* + * SYSLINUX installs the string 'SYSLINUX' at offset 3 in the boot + * sector; this is consistent with FAT filesystems. Earlier versions + * would install the string "EXTLINUX" ins...
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
...static int patch_file_and_bootblock(int fd, const char *dir, int devfd) nsect += 2; /* Two sectors for the ADV */ sectp = alloca(sizeof(sector_t) * nsect); if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS || - fs_type == XFS) { + fs_type == XFS || fs_type == UFS1) { if (sectmap(fd, sectp, nsect)) { perror("bmap"); exit(1); } - } else if (fs_type == BTRFS) { + } else if (fs_type == BTRFS || fs_type == UFS2) { int i; sector_t *sp = sectp; @@ -342,6 +346,7 @@ int install_bootblock(int fd, const char *device) struct fat_boot_sector sb3;...
2013 Jul 12
2
[PATCH 001/001] Add UFS1/2 support to Extlinux installer.
...static int patch_file_and_bootblock(int fd, const char *dir, int devfd) nsect += 2; /* Two sectors for the ADV */ sectp = alloca(sizeof(sector_t) * nsect); if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS || - fs_type == XFS) { + fs_type == XFS || fs_type == UFS1) { if (sectmap(fd, sectp, nsect)) { perror("bmap"); exit(1); } - } else if (fs_type == BTRFS) { + } else if (fs_type == BTRFS || fs_type == UFS2) { int i; sector_t *sp = sectp; @@ -342,6 +346,7 @@ int install_bootblock(int fd, const char *device) struct fat_boot_sector sb3;...
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
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...len + SECTOR_SIZE - 1) >> SECTOR_SHIFT; nsect += 2; /* Two sectors for the ADV */ sectp = alloca(sizeof(sector_t) * nsect); - if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS) { + if (fs_type == EXT2 || fs_type == VFAT || fs_type == NTFS || + fs_type == XFS) { if (sectmap(fd, sectp, nsect)) { perror("bmap"); exit(1); @@ -328,6 +341,7 @@ int install_bootblock(int fd, const char *device) struct btrfs_super_block sb2; struct fat_boot_sector sb3; struct ntfs_boot_sector sb4; + xfs_sb_t sb5; bool ok = false; if (fs_type == EX...