[parted-devel] [PATCH] set swap flag on GPT partitions
Arvin Schnell
aschnell at suse.com
Thu Dec 1 11:28:07 UTC 2016
Hi,
attached is a patch to support displaying and setting (on already
existing partitions) the swap flag on GPT partitions.
So far the swap flag can only be set when creating a partition
and setting the file-system to linux-swap.
Output of print looks like:
Model: Maxtor 6 Y080L0 (scsi)
Disk /dev/sdb: 82.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 8197MB 8196MB linux-swap(v1) swap
2 8197MB 16.4GB 8196MB
Note that "linux-swap(v1)" and "swap" are independent, any
combination is possible.
Feedback is welcome.
ciao
Arvin
--
Arvin Schnell, <aschnell at suse.com>
Senior Software Engineer, Research & Development
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parted-set-swap-on-gpt.diff
Type: text/x-patch
Size: 7150 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20161201/b9df8982/attachment.bin>
More information about the parted-devel
mailing list