On Thu, Mar 08, 2012 at 09:10:33AM +0000, Brian Candler wrote: > On Wed, Mar 07, 2012 at 08:17:58PM -0600, Eric Sandeen wrote: > > It seems worth thinking about. I guess I'm still a little concerned > > about the ENOSPC case; it could lead to some confusion - I could imagine > > several hundreds of gigs under preallocation, with a reasonable-sized > > filesystem returning ENOSPC quite early. > > And presumably df on the filesystem would also show it approaching 100% > utilisation? *nod* > I'm used to this where a large file has been unlinked but is still open. > The preallocation case is a new one to me though. > > How about if the total of all preallocations were limited to some small > percentage of the total filesystem size? If you reach this limit and want > to preallocate some space for another file you'd have to either drop or > shrink an older preallocation. There is no separate accounting for preallocation - it is considered used space so this currently can't be done even if there was some method for tracking and trimming speculatively preallocated space. Realistically, if you aren't running out of space there is no reason to limit speculative preallocation. Indeed, if we didn't add delalloc blocks to the block count in stat(2) output so they showed up in df, almost no-one would even know about the fact that this is done.... Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs