diff options
author | OBATA Akio <obache@wizdas.com> | 2019-04-15 18:15:27 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-05-04 17:25:51 +0200 |
commit | f0ab3066e16ae336b42931a3951771ffe7d32124 (patch) | |
tree | 2f12733a24102333f5d39995cdf57f6648685deb | |
parent | 39a89fa0a214671ed696634862423a18ebfd90c9 (diff) | |
download | tdeutils-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.cpp | 4 |
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 |