bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: linux-raid and EFI GPT patches for parted]


From: Andrew Clausen
Subject: Re: address@hidden: linux-raid and EFI GPT patches for parted]
Date: Mon, 20 Nov 2000 21:40:58 +1100

address@hidden wrote:
> 
> GPT maintains a separate idea of what the partition layout is.  Without the
> add/rm function calls, when I go to write, I've got to compare what's in the
> GPT idea of partitions vs what's in the disk idea, and do the deletions/adds
> at that point.  I found it easier to just be notified when those changes are
> made and change the GPT internal representation then.

Well, you aren't allowed to do any write's to the device, except
in ped_disk_write (and create).

Reason: automatic partitioning (long story) - basically, we need
to be able to simulate changes, and back out if necessary.

Is there any reason why you can't just "diff" the partitions?
(If you want, you could even keep a log inside the disk's private
metadata)

Actually, we should think about doing this in general.  Linux
ALSO keeps an idea of the partition table.  2.4 has the new blkpg
interface, which allows you to add/remove partitions (to Linux's
idea of the disk).  So, we need to be able to do "diff's".

No time to think about it now (philosophy exam!)

Bye!
Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]