Subject: Re: kern/6652: swapping to a sparse file fails unpredictably.
To: Daniel Carosone <dan@geek.com.au>
From: Marc Horowitz <marc@mit.edu>
List: netbsd-bugs
Date: 01/05/1999 19:06:24
Daniel Carosone <dan@geek.com.au> writes:

>> "ls -ls" will let me determine if a file is sparse, by comparing
>> the "length" and "number of blocks" columns.  This info comes from
>> the stat structure and is O(1)..

And fails if the file uses indirect blocks.  Like I said, I'm pretty
sure there's a way to do this, but I don't know what it is.

		Marc