From: Daniel Berger Date: 2011-01-06T02:27:12+09:00 Subject: Re: Getting the actual size of a sparse file On Jan 5, 10:04 am, Ryan Davis wrote: > On Jan 5, 2011, at 08:37 , Daniel Berger wrote: > > > Hi, > > > How do you get the true size of a sparse file? Using /var/log/lastlog > > on Ubuntu as an example I see this with "ls -lh" > > If you're on ubuntu you should be able to provide extra options to du: > > http://en.wikipedia.org/wiki/Sparse_file True, but I'd like to use pure Ruby (not system calls) if possible, at least for *nix systems. Or will this require an extension? Regards, Dan