[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeutils/kdf
From: Marcus Camen <mcamen () mcamen ! de>
Date: 2004-11-14 11:13:57
Message-ID: 20041114111357.3EB1A16DCC () office ! kde ! org
[Download RAW message or body]
CVS commit by mcamen:
Hide /dev/shm and sysfs filesystems
M +5 -1 disklist.cpp 1.37
--- kdeutils/kdf/disklist.cpp #1.36:1.37
@@ -210,6 +210,8 @@ QFile f(FSTAB);
if ( (disk->deviceName() != "none")
&& (disk->fsType() != "swap")
+ && (disk->fsType() != "sysfs")
&& (disk->mountPoint() != "/dev/swap")
&& (disk->mountPoint() != "/dev/pts")
+ && (disk->mountPoint() != "/dev/shm")
&& (disk->mountPoint().find("/proc") == -1 ) )
replaceDeviceEntry(disk);
@@ -343,6 +345,8 @@ void DiskList::dfDone()
&& (disk->deviceName() != "none")
&& (disk->fsType() != "swap")
+ && (disk->fsType() != "sysfs")
&& (disk->mountPoint() != "/dev/swap")
&& (disk->mountPoint() != "/dev/pts")
+ && (disk->mountPoint() != "/dev/shm")
&& (disk->mountPoint().find("/proc") == -1 ) ) {
disk->setMounted(TRUE); // its now mounted (df lists only mounted)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic