bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix statfs


From: Mark Kettenis
Subject: Re: Fix statfs
Date: Fri, 29 Jun 2001 21:04:21 +0200

   From: tb@becket.net (Thomas Bushnell, BSG)
   Date: 29 Jun 2001 10:55:51 -0700

   Mark Kettenis <kettenis@gnu.org> writes:

   > The way the ext2fs and ufs file system calculate the number of
   > available blocks can yield a negative number.  Since fsblkcont_t is an
   > unsigned type this causes some interesting output from df, when your
   > filesystem is clogging up.

   Hrm. Before checking it in, it seems to me that if this situation
   actually arises, there is a bug.  I mean, we should never allow
   reserving more blocks than we really have free...

No there is no bug.  Those blocks are reserved for root, thus when
root starts using these, the number of available blocks (as in
available to other users) f_bavail should be reported as 0.  The
number of blocks that are really free is stored in f_bfree.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]