[parted-devel] [PATCH 2/6] libparted: handle busy extended partition

Petr Uzel petr.uzel at suse.cz
Wed Oct 24 21:11:46 UTC 2012


On Tue, Oct 16, 2012 at 11:15:18AM -0400, Phillip Susi wrote:
> 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.
> 
> 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.

Good idea, thanks. I'll send v2 shortly.

Petr

-- 
Petr Uzel
IRC: ptr_uzl @ freenode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20121024/1dd48a17/attachment.pgp>


More information about the parted-devel mailing list