Bug 13570 - CIFS Mount Used Size descrepancy
Summary: CIFS Mount Used Size descrepancy
Status: NEW
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 2.6
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Steve French
QA Contact: cifs QA contact
Depends on:
Reported: 2018-08-13 14:18 UTC by Terrance
Modified: 2020-10-29 14:36 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Terrance 2018-08-13 14:18:47 UTC
The server and client are both using Ubuntu 16.04.  I have setup both Samba and NFS on the server.  I have installed both cifs-utils and the nfs utils on the client.

When I run `df -h` on the server I get the following output:

terrance@terrance-ubuntu:~$ ssh 'df -h'
/dev/md1p1       15T  7.4T  6.4T  54% /media/storage

Then I go and set up both mounts on my client for testing:

terrance@terrance-ubuntu:~$ df -h   15T  7.4T  6.4T  54% /media/NAS
//        15T  8.1T  6.4T  57% /cifs/server

The first one listed above is the NFS mount.

As a test last night I copied an 18GB file to my server and the CIFS mount reported now 8.4T used.  When I deleted the file it went back to 8.1T used.  There is no way 18GB = 300GB.

What is the reason for the discrepancy in the used size calculations for the CIFS mount?  

Thank you!
Comment 1 Terrance 2018-08-16 14:14:05 UTC
Just tested in 18.04 with the same issue.

apt-cache policy cifs-utils 
  Installed: 2:6.8-1
  Candidate: 2:6.8-1
  Version table:
 *** 2:6.8-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
Comment 2 Terrance 2020-10-29 14:36:08 UTC
Just checked with Ubuntu 20.04 LTS and it too has the exact same issue even with a newer version:

apt-cache policy cifs-utils
  Installed: 2:6.9-1ubuntu0.1
  Candidate: 2:6.9-1ubuntu0.1
  Version table:
 *** 2:6.9-1ubuntu0.1 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2:6.9-1 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages