Bug 13570 - CIFS Mount Used Size descrepancy
CIFS Mount Used Size descrepancy
Status: NEW
Product: CifsVFS
Classification: Unclassified
Component: kernel fs
2.6
All All
: P5 normal
: ---
Assigned To: Steve French
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-13 14:18 UTC by Terrance
Modified: 2018-08-16 14:14 UTC (History)
1 user (show)

See Also:


Attachments

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 10.0.0.220 '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
10.0.0.220:/media/storage   15T  7.4T  6.4T  54% /media/NAS
//10.0.0.220/storage        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 
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