Skip to contentSkip to conversation

New: Used block count in df output

Bug 53741 [email protected] 1 participant 4 messages Feb 13, 2013 – Nov 18, 2013

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=53741

               URL: http://marc.info/?l=linux-ext4&m=136021915127138&w=2
           Summary: Used block count in df output
           Product: File System
           Version: 2.5
    Kernel Version: 2.6.32
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: low
          Priority: P1
         Component: ext4
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: No

I have an observation on EXT4 filesystem. I created filesystem of size 1TB, 4TB, and 7TB and then checked the output of df command.

df command showed the number of 1KB blocks used. The result was:
1TB: 204056
4TB: 198680
7TB: 181784

I performed the same on XFS and the result was:
1TB: 32928
4TB: 32928
7TB: 33024

EXT4 result shows with increasing filesystem size, the number of used blocks decreased. This looks odd.

Quoted 1 line

From the linux-ext4 mailing list discussion

(http://marc.info/?l=linux-ext4&m=136021915127138&w=2), it seems to be a bug in df reporting.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#1 lore raw

[Bug 53741] Used block count in df output

https://bugzilla.kernel.org/show_bug.cgi?id=53741

Eric Sandeen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Eric Sandeen <[email protected]> 2013-02-13 05:21:01 --- Specifically, I think this is a problem with the overhead calculations done in the default "bsddf" freespace reporting, which tries to not count the fundamental filesystem metadata blocks as "used". With mount -o minixdf, which is the straightforward "report all blocks used as used" mode, the df output makes sense.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.