Subject: Re: free space (was /dev) on tmpfs problem
To: Manuel Bouyer <firstname.lastname@example.org>
From: Johnny Lam <email@example.com>
Date: 11/15/2005 15:57:24
Manuel Bouyer wrote:
> 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.
In fact, I'm pretty sure that pkg_add(8) does this.
-- Johnny Lam <firstname.lastname@example.org>