Ling, Xiaofeng
2004-Aug-06 17:06 UTC
[Ocfs2-devel] [patch] fix bug 53--- Disk usage status reported in "df" is incorrect
This is bug for 2.6 kernel.
------------------------------------------------------------------------
--------------------
Index: super.c
==================================================================--- super.c
(revision 1331)
+++ super.c (working copy)
@@ -757,6 +757,8 @@
reserved_bits);
buf->f_bfree (sector_t) (freebits *
(osb->s_clustersize >>
osb->sb->s_blocksize_bits));
+
+ buf->f_bavail = buf->f_bfree;
buf->f_files = (sector_t) (numbits);
buf->f_ffree = (sector_t) (numbits) - freebits;
#endif
-------------------
Intel China Software Lab.
iNet: 8-752-1243
8621-52574545-1243(O)
503-712-26740
xfling@users.sourceforge.net
Opinions are my own and don't represent those of my employer
Mark Fasheh
2004-Aug-06 18:46 UTC
[Ocfs2-devel] [patch] fix bug 53--- Disk usage status reported in "df" is incorrect
On Sat, Aug 07, 2004 at 06:05:50AM +0800, Ling, Xiaofeng wrote:> This is bug for 2.6 kernel.Cool, I've been meaning to track that one down...> ------------------------------------------------------------------------ > -------------------- > Index: super.c > ==================================================================> --- super.c (revision 1331) > +++ super.c (working copy) > @@ -757,6 +757,8 @@ > reserved_bits); > buf->f_bfree > (sector_t) (freebits * (osb->s_clustersize >> > osb->sb->s_blocksize_bits));gah, your mailer mangled this patch! It was tiny so I just did it by hand... --Mark -- Mark Fasheh Software Developer, Oracle Corp mark.fasheh@oracle.com