(In reply to comment #17)
> IIRC the partitioner also offer the option to revert changes. It is possible
however
> to restore the md superblocks. Their position is always the same as defined by
> the kernel drivers as
> it is their size.
> So ideally we could back them up somewhere before removing the partition and
> restore them later
> if the user undo's the changes.
No need for any of that; you simply zero the superblock in a commit script,
which by definition is run at the point of no return for undoing changes.
(In reply to comment #17)
> IIRC the partitioner also offer the option to revert changes. It is possible
however
> to restore the md superblocks. Their position is always the same as defined by
> the kernel drivers as
> it is their size.
> So ideally we could back them up somewhere before removing the partition and
> restore them later
> if the user undo's the changes.
No need for any of that; you simply zero the superblock in a commit script,
which by definition is run at the point of no return for undoing changes.