[parted-devel] Deleting loop partition clears XFS signatures
Phillip Susi
psusi at ubuntu.com
Fri Feb 20 21:28:03 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2/20/2015 11:19 AM, Brian C. Lane wrote:
> What do you expect to happen though? You've explicitly told parted
> to remove the 'partition' and that's what's happened. The fact that
> ext4 survives is more of an accident than anything else. I also
> don't really see the utility of trying to use parted like this --
> just make a real disk label and use that.
I was trying to preserve as much of the existing behavior as I could
when I made those changes. That meant allowing you to do the
following things:
1) Create a loop label with an empty partition
2) Create a loop label with no partition
3) Create a loop label with an empty partition, and then format a
filesystem there, and still have the disk show up as a loop label with
one partition containing that filesystem.
You asked what do you expect to happen, and what I actually expect to
when you delete the partition is for the filesystem to be deleted, so
the behavior your are seeing now with xfs is already correct. That
isn't how parted used to work though, so I tried to preserve the
ability to delete the partition without deleting the filesystem and
that does work... as long as the fs doesn't use sector zero.
In other words, for those filesystems that use sector zero, don't
delete the partition.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJU56bjAAoJENRVrw2cjl5RA3EH/iV+43ah5ZhRpe2Tx1y+1TJA
o8sXYJ/dXwa05e3aFhQwXwER7tncearNLpNnRiUMXATDxY9RUBsO6TeSZK8UCflz
TElnlsol+prV+ewtmmQsdGxH4oFLdx0M7/KUdr1DUk7sJ78hW/nzr8qUkQnJZIOJ
FIMHYwYjGmCOueLSlazUAoaKgdZrdwTfH04Lka4oBUzpjqELYaC4FVBYUy0VE6B+
OlTpepgxP1FC5fKAHvC5QOtDnVkb4SO6gdHQlOAnmsQfVMcO26F05VLuXoTW6UXb
Tog4E4kEQMZIbhn6wJWoFRPgHebY1AqDENCuoff37BsOW5aJ35mx5R7ciz23w+o=
=dTWL
-----END PGP SIGNATURE-----
More information about the parted-devel
mailing list