search for: disk_sig

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

Did you mean: disk_i
2014 Jun 29
0
[PATCH 4/6] chain: add missing pi_del() in find*() functions
...* Drive doesn't exist */ - if (!(boot_part = pi_begin(&diskinfo, opt.piflags))) - continue; - /* Check for a MBR disk */ - if (boot_part->type != typedos) { - pi_del(&boot_part); + if (!(iter = pi_begin(&diskinfo, opt.piflags))) continue; - } - if (boot_part->dos.disk_sig == mbr_sig) { + /* Check for a matching MBR disk */ + if (iter->type == typedos && iter->dos.disk_sig == mbr_sig) goto ok; - } + pi_del(&iter); } drive = -1; ok: - *_boot_part = boot_part; + *_boot_part = iter; return drive; } @@ -95,29 +91,26 @@ ok:...
2010 Aug 08
1
PATCH/RFC chain.c: update iterator code, yank from chain.c, move both to separate directory
...- export of partition guid (also to separate buffer) 2d) iterators *include* disk during iteration Right after creation, pi_begin() (previously get_first_partition()) does not iterate to first partition. 2e) available data at any time - disk guid or disk signature (sub.gpt.disk_guid or sub.dos_disk_sig) - parition guid (sub.gpt.part_guid) - parition label, asciiz (sub.gpt.part_label) - pointer to record holding unaltered partition entry (record) - iterator type (type) - lba beginning of partition (start_lba) - disk (0) / partition (1+) index (index) See partiter.h for details. 2f) pi_begin() I...
2012 Nov 06
50
chain.c32 (and partiter) updates v2
This is a bit updated set of chain.c32 changes that simplifies a few things (and in partiter part), fixes few minor issues and adds a few new features. Details are in the following commits, below is the summary and pull details at the end. Shao - any chance to peek over them ? Most of those are relatively simple changes and well tested, though of course something might have slipped my attention.
2013 Oct 18
0
[RFC/PATCH 1/3] Move partiter from com32/chain to com32/lib/syslinux
...isk_info *di, int flags, - const struct disk_dos_mbr *mbr -) -{ - if (pi_ctor(iter, di, flags)) - return -1; - - if (!(iter->data = malloc(sizeof *mbr))) { - critm(); - goto bail; - } - - memcpy(iter->data, mbr, sizeof *mbr); - - iter->dos.bebr_index0 = -1; - iter->dos.disk_sig = mbr->disk_sig; - - iter->type = typedos; - return 0; -bail: - pi_dtor_(iter); - return -1; -} - -/* pi_gpt_ctor() - GPT iterator specific initialization */ -static int pi_gpt_ctor(struct part_iter *iter, - const struct disk_info *di, int flags, - const struct disk_gpt_header *gp...
2015 Jul 22
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...isk_info *di, int flags, - const struct disk_dos_mbr *mbr -) -{ - if (pi_ctor(iter, di, flags)) - return -1; - - if (!(iter->data = malloc(sizeof *mbr))) { - critm(); - goto bail; - } - - memcpy(iter->data, mbr, sizeof *mbr); - - iter->dos.bebr_index0 = -1; - iter->dos.disk_sig = mbr->disk_sig; - - iter->type = typedos; - return 0; -bail: - pi_dtor_(iter); - return -1; -} - -/* pi_gpt_ctor() - GPT iterator specific initialization */ -static int pi_gpt_ctor(struct part_iter *iter, - const struct disk_info *di, int flags, - const struct disk_gpt_header *gp...
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
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address