Skip to contentSkip to conversation

fix bug 53--- Disk usage status reported in "df" is incorrect

PATCH New Ling 2 participants 2 messages Aug 6, 2004 OCFS2

lore
Share & tools
lore

Ling

#0 lore raw

PATCH 1/1 fix bug 53--- Disk usage status reported in "df" is incorrect

This is bug for 2.6 kernel.

------------------------------------------------------------------------
--------------------

super.c (working copy) renamed from super.c (revision 1331) +0 -0
Index: super.c
===================================================================
@@ -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

[email protected]
Opinions are my own and don't represent those of my employer

#1 lore raw

PATCH 1/1 fix bug 53--- Disk usage status reported in "df" is incorrect

Quoted 1 line · Xiaofeng

This is bug for 2.6 kernel.

Cool, I've been meaning to track that one down...

super.c (working copy) line 760

Quoted 11 lines

------------------------------------------------------------------------
--------------------
Index: super.c
===================================================================

super.c (working copy) renamed from super.c (revision 1331) +0 -0
@@ -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
[email protected]