* Enrico Zini <enr...@debian.org>, 2011-08-25, 16:07:
My advice is to not use dd unless you really need reblocking, are working with tapes, etc. For the requirement above, this is probably quicker and easier: truncate -s 500M file.img

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

?

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to