stratis-storage / stratisd

Easy to use local storage management for Linux.
https://stratis-storage.github.io
Mozilla Public License 2.0
797 stars 55 forks source link

Make Stratis metadata relocatable #1840

Open mulkieran opened 4 years ago

mulkieran commented 4 years ago

We need the ability to write the data to arbitrarily chosen locations on a device, for backup or for other uses. Right now, the metadata is implicitly offset from 0. Change that by parameterizing the appropriate methods on an offset.

mulkieran commented 3 years ago

We have other more pressing metadata tasks. This will go on a board when we need it.

jbaublitz commented 2 years ago

I'm actually interested in reviving this one. My current thoughts are that if we can find a way to do this, this would allow adding support for initializing the Stratis metadata with room for a LUKS2 header and then converting the pool to an encrypted pool at a later time.

Considerations for this include how we would have to modify blkid to detect the superblock if it is at an offset. We need to make sure that superblocks at an offset would still be picked up by blkid.