Hi,

as far as I understand it, one major advantage of the new ext4
filesystem is the ability to allocate large chunks of space within
seconds (aka `sparse files done right'?).  Applications may use
fallocate() or posix_fallocate() in order to use that feature
where available.

Two days ago I switched from ext3 to ext4 and tried to download a
huge 4GB ISO with rtorrent, a bittorrent client which offers an
option on systems with posix_fallocate().  It was nice to see that
rtorrent instantly started writing incoming data and no longer had
to `zero' the files or assume that a filesystem can handle sparse
files:

        (create sparse file)

        $ ls -lh sparse
                (...) 1001M (...) sparse
        $ du -sm sparse
                1       sparse

        (run rtorrent, load torrent)

        $ ls -lh KNOPPIX.iso
                (...) 4.2G (...) KNOPPIX.iso
        $ du -sm KNOPPIX.iso
                4241    KNOPPIX.iso

Now my question is: Is there maybe a way for encfs to make use of
posix_fallocate()?

Thanks,



   Petar Bogdanovic




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Encfs-users mailing list
Encfs-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/encfs-users

Reply via email to