Bug 208630 - Nested NFS mounts show incorrect free space
Summary: Nested NFS mounts show incorrect free space
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: SVN
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-26 20:05 UTC by Thrash Dude
Modified: 2024-09-14 17:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thrash Dude 2009-09-26 20:05:30 UTC
Version:           1.2.1 (using KDE 4.2.4)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Slackware Packages

Mounting a nested nfs export results in wrong free space being shown with dolphin.

server - /etc/exports

/mnt/stuff -sync,crossmnt,rw,async,no_root_squash,no_subtree_check client
/mnt/stuff/120 -sync,rw,async,no_root_squash,no_subtree_check client
/mnt/stuff/500 -sync,rw,async,no_root_squash,no_subtree_check client

/mnt/stuff is on the server with a size of ~20gb 10.5gb free
/mnt/stuff/120 is /dev/hdb1 with a size of 120gb ~75gb free
/mnt/stuff/500 is /dev/hdc1 with a size of 500gb 120gb free

client - /etc/fstab
server:/mnt/stuff /mnt/stuff   nfs      rw       0 0


With dolphin on the client PC, /mnt/stuff shows as having 10.5gb free (correct), /mnt/stuff/120, and /mnt/stuff/500 also each show the exact same total drive size and free space. Dolphin is only picking up the size of /mnt/sutff and not the nested 120 and 500gb. It looks funny when the properties show the directory is using 380GB, but reports a total drive size of ~20GB.

Other file managers report the correct sizes (Thunar, PCManFM) df through a shell also reports the correct size.

/mnt/stuff# df .
Filesystem           1K-blocks      Used Available Use% Mounted on
server:/mnt/stuff     19453376   8441512  11011864  44% /mnt/stuff

/mnt/stuff/120# df .
Filesystem           1K-blocks      Used Available Use% Mounted on
-                    117083392  38400256  78683136  33% /mnt/stuff/120

I've tried changing the export options from crossmnt to nohide. This did not change anything.

It should be noted that Konqueror has this same bug.
Comment 1 Peter Penz 2009-12-19 18:44:57 UTC
Thanks for the report.

(internal note: Dolphin/Konqueror use KDiskFreeSpaceInfo from kdelibs)
Comment 2 Christoph Cullmann 2024-09-14 17:06:46 UTC
Hi,

kdelibs (version 4 and earlier) is no longer maintained since a few years.

KDE Frameworks 5 or 6 might already have resolved this bug.

If not, please re-open against the matching framework if feasible or against the application that shows the issue.

We then can still dispatch it to the right Bugzilla product or component.

Greetings
Christoph Cullmann