diff options
author | OBATA Akio <obache@wizdas.com> | 2019-04-15 18:15:27 +0900 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2019-05-04 15:22:41 +0000 |
commit | a52303734b6b7ade6c3eca81871aad2d488d37f8 (patch) | |
tree | 3f4fa60081a53980acc6f78fc2d147a13cbaf4ea /ksim | |
parent | d349995488a13687171a67efd981e986b3b703e5 (diff) | |
download | tdeutils-a52303734b6b7ade6c3eca81871aad2d488d37f8.tar.gz tdeutils-a52303734b6b7ade6c3eca81871aad2d488d37f8.zip |
Use `getvfsnumber()` to retrieve filesystem name on OSF/1 (Tru64)
Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'ksim')
-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 |