LWN.net Logo

The 2006 Linux Filesystems Workshop (Part III)

The 2006 Linux Filesystems Workshop (Part III)

Posted Jul 6, 2006 11:45 UTC (Thu) by NAR (subscriber, #1313)
Parent article: The 2006 Linux Filesystems Workshop (Part III)

Another technique is the POSIX fallocate() function, which tells the file system to allocate N bytes of disk space for this file, which is useful for programs like tar and package managers which know exactly how large a file will be.

There is an other class of applications that know the file size beforehand - download managers, FTP clients, browsers, P2P tools, etc. that get the file size from the network protocol.

Bye,NAR


(Log in to post comments)

The 2006 Linux Filesystems Workshop (Part III)

Posted Jul 7, 2006 14:19 UTC (Fri) by dion (subscriber, #2764) [Link]

... don't forget cp, it usually has a good idea about the filesize.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds