search for: try_gpt_we

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

2014 Jun 29
0
[PATCH 1/6] chain/partiter: fix and improve gpt handling in buggy cases
...chksum = hold_crc32; - - return 0; + valid = crc == crc32(crc32(0, NULL, 0), buf, gh->hdr_size); + gh->chksum = crc; + return valid; } static int pi_next_(struct part_iter *iter) @@ -546,10 +528,108 @@ void pi_del(struct part_iter **_iter) *_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; +...
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
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...t_usable && gpt_loff <= gpth->lba_last_usable) || - gpt_loff + gpt_lcnt > gpt_sec || - ((flags & PIF_STRICTER) && (gpt_sec >= di->lbacnt)) || - gpth->part_size < sizeof(struct disk_gpt_part_entry)) - return -1; - - return 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...
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