[parted-devel] [PATCH 0/2] Add linux-home for GPT
Arvin Schnell
aschnell at suse.com
Mon Sep 27 09:33:54 BST 2021
Hi,
while adding linux-home as a partition type to GPT I realized
that the code in gpt.c could be simplified by removing the 14
flags that correspond to a partition type/uuid in
_GPTPartitionData. Instead the type/uuid can be used directly.
That also fixes some minor bugs:
E.g. setting "atvrecv" does not clear "bls_boot" so both flags
are shown. Alike setting "diag" does not clear "bls_boot" and
setting "prep" does not clear "msftdata".
Also creating a new partition with file system "fat", "udf",
"ntfs" or "linux-swap" does not set the nsftdata or swap flag (it
only sets the type uuid).
That is done in the first patch. The second small patch then adds
the linux-home flag.
Thanks,
Arvin
--
Arvin Schnell, <aschnell at suse.com>
Senior Software Engineer, Research & Development
SUSE Software Solutions Germany GmbH
Maxfeldstraße 5
90409 Nürnberg
Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
More information about the parted-devel
mailing list