public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* fallocate everywhere?
@ 2011-01-14 18:18 Phil Karn
  2011-01-15  4:38 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Karn @ 2011-01-14 18:18 UTC (permalink / raw)
  To: xfs

Can anyone think of a good reason *not* to sprinkle fallocate() calls
through as many Linux utilities as possible? E.g., programs like rsync,
tar, cpio, pax, ftp, mv, cp -- anything and everything that creates a
file with a size known in advance.

As far as I can tell, calling fallocate() when it's not supported
quickly returns an error and does no harm. So I can't even think of a
reason to only make it optional. If it's implemented as an
off-by-default option, most people would probably not know about it so
it would rarely get used. Those who do know about it would frequently
forget to use it, and choosing and learning a separate option for every
command would be painful.

Besides xfs, ext4 supports fallocate so I expect that most Linux systems
will be able to benefit from it fairly soon.


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-15  4:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 18:18 fallocate everywhere? Phil Karn
2011-01-15  4:38 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox