On Mon, 26 Mar 2012, Andrew Gabriel wrote:

I just played and knocked this up (note the stunning lack of comments, missing optarg processing, etc)...
Give it a list of files to check...

This is a cool program, but programmers were asking (and answering) this same question 20+ years ago before there was anything like SEEK_HOLE.

If file space usage is less than file directory size then it must contain a hole. Even for compressed files, I am pretty sure that Solaris reports the uncompressed space usage.

Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
zfs-discuss mailing list

Reply via email to