summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-15 18:15:27 +0900
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2019-05-04 15:22:41 +0000
commita52303734b6b7ade6c3eca81871aad2d488d37f8 (patch)
tree3f4fa60081a53980acc6f78fc2d147a13cbaf4ea
parentd349995488a13687171a67efd981e986b3b703e5 (diff)
downloadtdeutils-origin/HEAD.tar.gz
tdeutils-origin/HEAD.zip
Use `getvfsnumber()` to retrieve filesystem name on OSF/1 (Tru64)HEADorigin/masterorigin/HEADmaster
Signed-off-by: OBATA Akio <obache@wizdas.com>
-rw-r--r--ksim/monitors/filesystem/filesystemstats.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ksim/monitors/filesystem/filesystemstats.cpp b/ksim/monitors/filesystem/filesystemstats.cpp
index f60ce58..5c1cf3a 100644
--- a/ksim/monitors/filesystem/filesystemstats.cpp
+++ b/ksim/monitors/filesystem/filesystemstats.cpp
@@ -176,7 +176,9 @@ FilesystemStats::List FilesystemStats::readEntries()
entry.dir = sfs[i].f_mntonname;
entry.fsname = sfs[i].f_mntfromname;
-#ifndef __osf__
+#ifdef __osf__
+ entry.type = getvfsbynumber(sfs[i].f_type);
+#else
entry.type = sfs[i].f_fstypename;
#endif