On Fri, Nov 25, 2011 at 06:05:14PM +0100, Jakub Wilk wrote: > >No: truncate leaves holes. If you're creating a filesystem on a > >file, it means that you can get ENOSPACE even if there would be > >space in the file, but because the underlying file system ran out > >of space when allocating a block to fill a hole. > > How about this: > > fallocate -l 500M file.img
Thanks! That does the job very nicely indeed for that use case. Ciao, Enrico -- GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enr...@enricozini.org>
signature.asc
Description: Digital signature