Displaying 12 results from an estimated 12 matches for "part_guid".
2014 Jun 29
0
[PATCH 4/6] chain: add missing pi_del() in find*() functions
...piflags)))
- continue;
- /* Check for a GPT disk */
- if (boot_part->type != typegpt) {
- pi_del(&boot_part);
+ if (!(iter = pi_begin(&diskinfo, opt.piflags)))
continue;
- }
/* Check for a matching GPT disk/partition guid */
- do {
- if (!memcmp(&boot_part->gpt.part_guid, gpt_guid, sizeof *gpt_guid))
- goto ok;
- } while (!pi_next(boot_part));
+ if (iter->type == typegpt)
+ do {
+ if (!memcmp(&iter->gpt.part_guid, gpt_guid, sizeof *gpt_guid))
+ goto ok;
+ } while (!pi_next(iter));
+ pi_del(&iter);
}
drive = -1;
ok:
- *_boo...
2010 Jul 30
4
chain.c: fix v2 for public indexes in iterators (for master and disklib)
>From the earlier patches - that simple fix for indexes not counting non-data
partitions in gpt and mbr cases. Patches don't touch any other parts of the
code at this stage - bigger stuff later for disklib as we agreed - but this is
potentially useful right now.
Michal Soltys (1):
chain.c: fix public index value in mbr and gpt iterators
2010 Aug 08
1
PATCH/RFC chain.c: update iterator code, yank from chain.c, move both to separate directory
...o 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()
It does sanity checks - including gpt...
2010 Jul 23
0
[PATCH] chain.c: gpt's index/private.index mismatch fix, cosmetic iterator changes
...t_mbr_part(struct disk_part_iter *part)
part->record = table + part->private.mbr_index;
return part;
- free(ebr_part);
err_alloc:
free(part->block);
@@ -869,7 +863,7 @@ static struct disk_part_iter *next_gpt_part(struct disk_part_iter *part)
part->private.gpt.part_guid = &gpt_part->uid;
part->private.gpt.part_label = gpt_part->name;
/* Update our index */
- part->index++;
+ part->index = part->private.gpt.index + 1;
gpt_part_dump(gpt_part);
/* In a GPT scheme, we re-use the iterator */
--
1.6.3.1
2012 Aug 01
0
chain module updates
...ove redundant rawindex
com32/chain: partiter - more precise comments / output
com32/chain: remove unused ebr_start
com32/chain: add pi_errored() in partiter
com32/chain: mangle and related updates
com32/chain: cleaner variable names
com32/chain: use disk_guid for part_guid for 0th partition
com32/chain: warning/error/help/doc tidying
com32/chain: make 'fixchs' and 'hide' options respect 'save'
com32/chain: implement relax flag (PIF_RELAX)
com32/chain: implement handling of non-standard hybrid GPT+MBR layouts
com32...
2013 Oct 18
0
[RFC/PATCH 1/3] Move partiter from com32/chain to com32/lib/syslinux
...gt;part_count;
- iter->gpt.pe_size = (int)gpth->part_size;
- iter->gpt.ufirst = gpth->lba_first_usable;
- iter->gpt.ulast = gpth->lba_last_usable;
-
- memcpy(&iter->gpt.disk_guid, &gpth->disk_guid, sizeof gpth->disk_guid);
- memcpy(&iter->gpt.part_guid, &gpth->disk_guid, sizeof gpth->disk_guid);
-
- iter->type = typegpt;
- return 0;
-bail:
- pi_dtor_(iter);
- return -1;
-}
-
-/* Logical partition must be sane, meaning:
- * - must be data or empty
- * - must have non-0 start and length
- * - values must not wrap around 32b...
2015 Jul 22
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...gt;part_count;
- iter->gpt.pe_size = (int)gpth->part_size;
- iter->gpt.ufirst = gpth->lba_first_usable;
- iter->gpt.ulast = gpth->lba_last_usable;
-
- memcpy(&iter->gpt.disk_guid, &gpth->disk_guid, sizeof gpth->disk_guid);
- memcpy(&iter->gpt.part_guid, &gpth->disk_guid, sizeof gpth->disk_guid);
-
- iter->type = typegpt;
- return 0;
-bail:
- pi_dtor_(iter);
- return -1;
-}
-
-/* Logical partition must be sane, meaning:
- * - must be data or empty
- * - must have non-0 start and length
- * - values must not wrap around 32b...
2012 Nov 06
50
chain.c32 (and partiter) updates v2
...ain exFAT aware by adding yet another "BPB" variation with the
usual stuff (partition offset - now 64bit, drive).
- com32/chain: manglepe_fixchs() correction
Previously fixchs also included start/length 0/0 entries (holes), so this patch
makes it a bit more careful.
- use disk_guid for part_guid for 0th partition (under GPT layouts)
- partiter: make sure 'index' is (-1) also for empty primary partitions
The following changes since commit 7307d60063ee4303da4de45f9d984fdc8df92146:
memdisk: Fix order of sectors/track and bytes/sector (2012-10-23 10:53:17 +0100)
are available in...
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
2010 Jul 26
5
[RFC/PATCH] New chainloading functionality
This patch introduces extra functionality to chain.c, mainly with reference to
BPB adjustments, but not only that. It expects 3 small patches I sent earlier
(they are included for easy reference, patches 1-3/4).
The changes introduced are:
1) file and boot sector use separate options to control load address and jump
address (if applicable). Options are as described below:
*
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