On Oct 19, 2001  17:21 +0200, Pierre Etchemaite wrote:
> Yes, moving files to a "trashbin folder" should be very fast (even
> faster than a real unlink ?), and even if you pay the price of the
> real unlink later (when flushing the trashbin folder), it should be
> ok for "desktop usage"... reiserfs is really fast at unlinking files ;)
> 
> The only problem I can see, performance-wise, is that fragmentation
> should increase a bit faster, because "virtually free" space (free
> space + files in trashbin) is not coalesced like "really free" space
> is; Just like when a filesystem is almost full, it makes the
> allocator's job harder...

Well, just make the library start unlinking old files when it hits 90% full.
This ensures some free space for files, and also means that you have some
free space left if you are in the middle of "undelete saving" one large file
and another large file gets created.

Cheers, Andreas
--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

Reply via email to