[parted-devel] [PATCH 2/6] libparted: handle busy extended partition
Phillip Susi
psusi at ubuntu.com
Tue Oct 16 15:15:18 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/16/2012 8:38 AM, Petr Uzel wrote:
>> What happens if the old partition was NOT an extended partition,
>> but the new one is? In other words, we are removing a primary
>> partition and replacing it with a primary that starts in the
>> same place? Then wouldn't this change prevent parted from
>> complaining that it couldn't make the change if the partition is
>> in use?
>
> Isn't this a bit of a contrived case? :) No, really, good point -
> I'll try to reproduce this scenario and check what can be done
> about it.
>
> Thanks for the review,
>
> Petr
Maybe you could add a check that the existing kernel partition table
has a length <= 2 sectors, then it should be safe to assume that the
partition is already an extended, so if the new partition is also
extended, then we don't care if removing it fails.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iQEcBAEBAgAGBQJQfXoFAAoJEJrBOlT6nu75XB8IAMpYDw7dzmqq3doorctFJYYT
1fOuBE01c44NwmYoYDnMZ351XseUPR8oOrD1CaTMo2vz+QDXL49pA9OK6Syde6vW
XdXXsThTE0GuJm3Oyv7aLSKW8OKpvYWo1xAcYDBC15cw60wSMa3Z8ugqTbroHlYt
f6rw+de4o5J9ulEL7WSXjPGtaN3da0ZJHHZ/bxvzxMdUOvMEI7wyIJli9nBpaQ1v
aP8u4FXqYF/QHuk9CDswyPPDpawAj/BUGYheve2xG0OxMiPrytZ7pE0S+Ls7XkZ+
irRNrvv82nSrozBZT3PQ5OgqwDt7WYp4EvR8jYMLYoIf7G7b2rrFYo0WDyP9y8w=
=0Sk4
-----END PGP SIGNATURE-----
More information about the parted-devel
mailing list