Subject: Re: free space (was /dev) on tmpfs problem
To: None <tech-kern@NetBSD.org>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 11/15/2005 20:10:02
On Mon, Nov 14, 2005 at 02:24:43AM -0500, Matthew Mondor wrote:
> (only about the df problem:)
> I'm not sure if I propely understand, but wouldn't it be okay if tmpfs
> simply reported the size currently in use, with 0B as available bytes
> in most cases?
> i.e. like for kernfs, same size reported for "Size" and "Used", and 0B
> for "Avail" (unless possibly an option used to set the maximum allowed size)
> such that "Capacity" would always be 100% (except again where an option is
> used to specify the maximum allowed size)?
> If the number of bytes/blocks in use can be accounted by the FS, wouldn't
> it be simple to do it this way?
This may break softwares that tries to see if they have enouth space before
writing a file.
Manuel Bouyer <email@example.com>
NetBSD: 26 ans d'experience feront toujours la difference