search for: gpt_cur

Displaying 4 results from an estimated 4 matches for "gpt_cur".

2014 Jun 29
0
[PATCH 1/6] chain/partiter: fix and improve gpt handling in buggy cases
...*_iter = NULL; } +static void try_gpt_we(const char *str, int sec) +{ + if (sec) + error(str); + else + warn(str); +} + +static struct disk_gpt_header *try_gpt_hdr(const struct disk_info *di, int sec) +{ + const char *desc = sec ? "backup" : "primary"; + uint64_t gpt_cur = sec ? di->lbacnt - 1 : 1; + struct disk_gpt_header *gpth; + char errbuf[64]; + + gpth = disk_read_sectors(di, gpt_cur, 1); + if (!gpth) { + sprintf(errbuf, "Unable to read %s GPT header.", desc); + try_gpt_we(errbuf, sec); + return NULL; + } + if(!valid_crc_hdr(gpth...
2015 Jul 22
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...n 0; -} - -static void try_gpt_we(const char *str, int sec) -{ - if (sec) - error(str); - else - warn(str); -} - -static struct disk_gpt_header *try_gpt_hdr(const struct disk_info *di, int sec, int flags) -{ - const char *desc = sec ? "backup" : "primary"; - uint64_t gpt_cur = sec ? di->lbacnt - 1 : 1; - struct disk_gpt_header *gpth; - char errbuf[96]; - - gpth = disk_read_sectors(di, gpt_cur, 1); - if (!gpth) { - sprintf(errbuf, "Unable to read %s GPT header.", desc); - goto out; - } - if(!valid_crc_gpth(gpth, flags)) { - sprintf(errbuf,...
2014 Jun 29
10
[PATCH 0/6] chain.c32 patches
This small set fixes few bugs, improves gpt handling (under buggy conditions) and implements strict flag with more fine grained control which should fix issues with sanity checks against disk sizes. If this set is allright I'd want to do what I mentioned in older discussion with Ady - backport missing patches from 6.x to 5.x and 4.x so all versions have up to date chain version. Michal
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not