[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
df: do not filter remote filesystem
From: |
Fridolin Pokorny |
Subject: |
df: do not filter remote filesystem |
Date: |
Wed, 13 Aug 2014 18:49:25 +0200 |
User-agent: |
KMail/4.13.3 (Linux/3.15.7-200.fc20.x86_64; KDE/4.13.3; x86_64; ; ) |
Hi,
I am proposing a simple patch to disable a remote filesystem filtering. This
issue was reported as a bug [1]. The filtering is based on device id which
seems to be confusing when using remote filesystems such as nfs.
Have a nice day!
Fridolin Pokorny
[1] https://bugzilla.redhat.com/show_bug.cgi?id=920806
diff --git a/src/df.c b/src/df.c
index 3ef5d33..26a0ad2 100644
--- a/src/df.c
+++ b/src/df.c
@@ -635,7 +635,7 @@ filter_mount_list (bool devices_only)
{
/* If we've already seen this device... */
for (devlist = device_list; devlist; devlist = devlist->next)
- if (devlist->dev_num == buf.st_dev)
+ if (! me->me_remote && devlist->dev_num == buf.st_dev)
break;
if (devlist)
- df: do not filter remote filesystem,
Fridolin Pokorny <=