Subject: Re: kern/6652: swapping to a sparse file fails unpredictably.
To: Daniel Carosone <>
From: Marc Horowitz <>
List: netbsd-bugs
Date: 01/05/1999 19:06:24
Daniel Carosone <> 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.