Subject: Re: kern/6652: swapping to a sparse file fails unpredictably.
To: None <firstname.lastname@example.org>
From: Christoph Badura <email@example.com>
Date: 01/07/1999 16:05:33
firstname.lastname@example.org (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.
Probleme mit Linux? Versuch NetBSD! www.netbsd.org
Problems with Linux? Try NetBSD! www.netbsd.org