[Ocfs2-devel]
[patch] fix bug 53--- Disk usage status reported in "df" is
incorrect
Ling, Xiaofeng
xiaofeng.ling at intel.com
Sat Aug 7 07:05:50 CDT 2004
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 at users.sourceforge.net
Opinions are my own and don't represent those of my employer
More information about the Ocfs2-devel
mailing list