On Mon, Jul 31, 2006 at 06:05:01PM +0200, Łukasz Mierzwa wrote:

> I gues that extens are much harder to reuse then normal inodes so when You  
> have something as big as portage tree filled with nano files wich are  
> being modified all the time then You just can't keep performance all the  
> time. You can always tar, rm -fr /usr/portage, untar and You will probably  
> speed things up a lot.

I submitted a script to this list which takes care of everything
required to recreate your fs. It even converts between different
filesystems, for migration purposes or comparitive tests, and currently
supports ext2|3, reiser3|4 and xfs.

The thing is undergoing some surgery atm. to reduce forced disk flushes.
I already replaced the call to sync() after every operation by one
fsync() call on the archive file before the formatting takes place. What
is still missing is functionality to retrieve things like fs label and
UUID from the existing fs and reuse them during mkfs. Testing is also
pending, so you might not want to hold your breath waiting for the funky
version, the idea of which is to leave everything as it was found,
except for better disk layout and possibly changed fs type.

It is a completely different approach from convertfs, which tries to do
the conversion in-place by moving the fs's contents into a new fs
created within a sparse file on the same device and relocating the
sparse file's blocks afterwards. My guess is that a failure of any kind
in the latter process will destroy your data (this was the case last
time I checked), while I do (at least try) everything to ensure that the
tarball is written to platters before mkfs occurs.

The new version will be posted to wiki.namesys.com asap, no timeframe
attached though as Thursday yields an exam, so maybe on Friday, but who
knows. The version already posted to the list works well, I used it at
least a hundred times, even on stuff like /home and /usr (the latter
works only from a live cd or custom initramfs).

Kind regards,
Chris

Attachment: pgpJCvRI7J8nt.pgp
Description: PGP signature

Reply via email to