Subject: Re: kern/6652: swapping to a sparse file fails unpredictably.
To: None <>
From: Christoph Badura <>
List: netbsd-bugs
Date: 01/07/1999 16:05:33 (Marc Horowitz) writes:

>You're about the fifth person to tell me that it's possible.  Can
>someone please tell me *how* so I can fix the code?

If you know the underlying filesystem implementation you can calculate
the number of blocks holding indirect blocks and compare that to the
number of blocks occupied by the file.

I would make that a new op in the VFS layer, though.

Christoph Badura

Probleme mit Linux?  Versuch NetBSD!
Problems with Linux?  Try NetBSD!