[parted-devel] [PATCH] set swap flag on GPT partitions
Brian C. Lane
bcl at redhat.com
Thu Dec 22 22:28:55 UTC 2016
On Thu, Dec 01, 2016 at 12:28:07PM +0100, Arvin Schnell wrote:
>
> 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.
>
Ack. Looks good to me.
--
Brian C. Lane (PST8PDT)
More information about the parted-devel
mailing list