[parted-devel] [PATCH] libparted/dasd: improve lvm/raid flag handling for DASD-CDL

Phil Susi psusi at ubuntu.com
Fri Apr 21 12:47:56 UTC 2017


On 4/20/2017 10:07 PM, Wang Dong wrote:
> But the flag cannot be read with the presence of the filesystem previously.
> That's why the change.

How so?  The flag is in the partition table.  What data is written to
the partition has nothing to do with the flag.  Whether you have a
filesystem or not, the flag is still there in the partition table.

> Nothing goofy. Just the property of the lvm/raid. Because when to
> make a partition to lvm/raid, the filesystem will be ripped out.

Not by parted it won't.  We just update the partition table, and it is
up to the user to mess with the filesystem.  If they don't run pvcreate
on the partition after setting the lvm flag, then the filesystem is
still there and works just fine.  These flags simply don't matter in
practice, and so I never bother setting them even though I do use raid
and lvm.




More information about the parted-devel mailing list