summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2019-04-15 18:15:27 +0900
committerSlávek Banko <slavek.banko@axis.cz>2019-05-04 17:25:51 +0200
commitf0ab3066e16ae336b42931a3951771ffe7d32124 (patch)
tree2f12733a24102333f5d39995cdf57f6648685deb
parent39a89fa0a214671ed696634862423a18ebfd90c9 (diff)
downloadtdeutils-f0ab3066e16ae336b42931a3951771ffe7d32124.tar.gz
tdeutils-f0ab3066e16ae336b42931a3951771ffe7d32124.zip
Use `getvfsnumber()` to retrieve filesystem name on OSF/1 (Tru64)
Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit a52303734b6b7ade6c3eca81871aad2d488d37f8)
-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