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

>>[kre]
>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!  www.netbsd.org
Problems with Linux?  Try NetBSD!  www.netbsd.org