|
|
|
|
|
by koverstreet
563 days ago
|
|
It's not quite as dangerous as you'd think. The standard technique is to reserve a big file on the old filesystem for the new filesystem metadata, and then walk all files on the old filesystem and use fiemap() to create new extents that point to the existing data - only writing to the space you reserved. You only overwrite the superblock at the very end, and you can verify that the old and new filesystems have the same contents before you do. |
|