Displaying 16 results from an estimated 16 matches for "disk_guid".
2016 Jan 19
0
[PATCHv2 3/3] resize: preserve GPT disk GUID.
.../resize.ml
index d6dd9a5..8ff4793 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -407,6 +407,13 @@ read the man page virt-resize(1).
error (f_"%s: unknown partition table type\nvirt-resize only supports MBR (DOS) and GPT partition tables.")
(fst infile) in
+ let disk_guid =
+ match parttype with
+ | MBR -> None
+ | GPT ->
+ try Some (g#part_get_disk_guid "/dev/sda")
+ with G.Error _ -> None in
+
(* Build a data structure describing the source disk's partition layout. *)
let get_partition_content =
let pvs_full = A...
2011 Mar 13
0
chain.c32 memcmp bug
...'t work as expected (unable to find
requested GPT disk/partition). The entered guid is correct according
to gdisk and chain.c32 debug information but still chain.c32 claims it
can't find the drive.
The bug is located in function find_by_guid, line 991. It is
is_me = !memcmp(&header->disk_guid, &gpt_guid, sizeof(*gpt_guid));
but should be
is_me = !memcmp(&header->disk_guid, gpt_guid, sizeof(*gpt_guid));
as memcmp takes two void pointers and gpt_guid is already a pointer to
struct guid.
I've recompiled chain.c32 with this tiny fix (using gcc 4.4.3) and now
it finds disks b...
2013 Oct 18
0
[RFC/PATCH 1/3] Move partiter from com32/chain to com32/lib/syslinux
...}
-
- memcpy(iter->data, gptl, (size_t)siz);
-
- iter->gpt.pe_count = (int)gpth->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...
2015 Jul 22
0
[PULL 1/8] Move partiter from com32/chain to com32/lib/syslinux
...}
-
- memcpy(iter->data, gptl, (size_t)siz);
-
- iter->gpt.pe_count = (int)gpth->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...
2016 Jan 19
4
[PATCHv2 0/3] Get/set disk GPT GUID API and support in virt-resize.
Some OSes (e.g. Windows Server 2012 R2) fail to boot after virt-resize
due to changed disk guid. To fix it, we add new APIs:
part_get_disk_guid
part_set_disk_guid
part_set_disk_guid_random
We also preserve disk GUID in virt-resize.
Maxim Perevedentsev (3):
New API: part_get_disk_guid and part_set_disk_guid.
New API: part_set_disk_guid_random.
resize: preserve GPT disk GUID.
daemon/parted.c | 75 ++++++++++++++++++++++++++++++...
2012 Nov 06
50
chain.c32 (and partiter) updates v2
...This makes chain 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)
ar...
2010 Aug 08
1
PATCH/RFC chain.c: update iterator code, yank from chain.c, move both to separate directory
...(to separate buffer)
- 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...
2012 Aug 01
0
chain module updates
...m32/chain: remove 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 layou...
2012 Dec 06
2
[PATCH 0/2] Two build fixes for libldm
Two simple build fixes for libldm. Well, the first isn't a build
fix as such, but a code improvement.
Rich.
2017 Oct 08
0
[PATCH v2 3/4] common/mlstdutils: Introduce Option submodule.
...ff --git a/resize/resize.ml b/resize/resize.ml
index 4eeb0a170..837c3ce9e 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -1005,7 +1005,7 @@ read the man page virt-resize(1).
let ok =
try
g#part_init "/dev/sdb" parttype_string;
- may (g#part_set_disk_guid "/dev/sdb") disk_guid;
+ Option.may (g#part_set_disk_guid "/dev/sdb") disk_guid;
true
with G.Error error -> last_error := error; false in
if ok then g, true
@@ -1195,8 +1195,8 @@ read the man page virt-resize(1).
if p.p_bootable then...
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
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
...- gpt->hdr_size,
- gpt->chksum,
- gpt->reserved1,
- gpt->lba_cur,
- gpt->lba_alt,
- gpt->lba_first_usable,
- gpt->lba_last_usable,
- gpt->lba_table, gpt->part_count, gpt->part_size, gpt->table_chksum);
- guid_to_str(guid_text, &gpt->disk_guid);
- printf("GPT disk GUID ________ : {%s}\n", guid_text);
-}
diff --git a/com32/lib/syslinux/disk/bios/disk.c b/com32/lib/syslinux/disk/bios/disk.c
new file mode 100644
index 0000000..76e98c6
--- /dev/null
+++ b/com32/lib/syslinux/disk/bios/disk.c
@@ -0,0 +1,364 @@
+/* ----------------...
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
2017 Oct 08
4
[PATCH 0/3] common/mlstdutils: Add Std_utils List and Option modules.
In Std_utils we already extend Char and String. These commits take it
a little further by extending List and adding a new Option submodule.
All basically simple refactoring.
Rich.
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created.
As part of this patch:
- required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago;
- newer version of libdevmapper allowed to simplify code base a little bit;
-
2017 Oct 08
7
[[PATCH v2 0/4] common/mlstdutils: Add Std_utils List and Option modules.
This time including the first commit ...