Bug 199707 - Preserve UUID when recreating file systems
Summary: Preserve UUID when recreating file systems
Status: CONFIRMED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Volker Lanz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-10 20:13 UTC by Volker Lanz
Modified: 2024-07-09 19:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Lanz 2009-07-10 20:13:47 UTC
Version:            (using Devel)
Installed from:    Compiled sources

When recreating a file system on an existing partition, the UUID should be preserved if possible.
Comment 1 Volker Lanz 2009-08-02 21:27:30 UTC
This is trivial, but not as trivial as it might seem, because the FileSystem implementations right now _create_ UUIDs in their respective updateUUID() methods.

First step would be to separate generation of new UUIDs and writing them to disk. The updateUUID() methods should just write the contents of the m_UUID prop and nothing else.

Copying the UUID from the old to the new file system should probably be done when creating the copy, not in some op or job implementation; this has the advantage of showing the (old and new) correct UUID in the preview before applying.