[parted-devel] Deleting loop partition clears XFS signatures

Phillip Susi psusi at ubuntu.com
Fri Feb 20 15:22:19 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/20/2015 3:55 AM, Mike Fleetwood wrote:
> With a whole disk ext4 file system, deleting the virtual partition
> is effectively a no-operation as the ext4 file system remains
> intact and is still detected on the whole disk device.
> 
> It appears that deletion of the virtual loop partition is trying to
> be as close as possible a no-operation, yet still leave the device
> detected with a loop partition table.  So either: 1) the device
> contains the loop signature or 2) contains a libparted recognised
> file system signature.  In both cases it will still be recognised
> as containing a

Right... so the problem is that parted does not recognize xfs.  Simply
adding an xfs recognizer will fix this, and is something we should do
anyhow.

> loop partition table when re-read.  If something else erases the 
> signature in the mean time then that is something else's
> responsibility and a new loop partition table can be re-created.
> Therefore I think deletion of the virtual loop partition table
> should truly be a no-operation.

Then the delete operation itself would be wiped out after a re-read
and the virtual partition would pop back into existence.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJU51ErAAoJENRVrw2cjl5RjPkH/0DTyAMXbtsU8Ti3NHAdKmIj
E4A+KB0xVP79iNxPjqIGm+xjbnZeGjveawT5YYePo4YUHVRFd3L+ZKz9z/+xhKdD
w5gWu9U2N4t0B6GKJB5ptOyiqc+n4Teh0D+ndNTOHcaiViIhQYSa9rqXCvVQg6dI
+/48uIwsZjbig3Rl0+M2H58lObTLsHLWefMPc3C3nsMyIgmX2iDaG3TvPcBlnB0i
Q+hm6s1Y4h9buDrGz3hqblzSPPo1eVux6BG5bxVv2WL/dfwVb3o3PH8pPDwnwSSG
DDCzfeJjPvQcYDC0tfCBfXaYWEnBLr/ZFO8Cayohhy48otjrHqhP3keqaDLa7Kg=
=fdmX
-----END PGP SIGNATURE-----



More information about the parted-devel mailing list