From a52303734b6b7ade6c3eca81871aad2d488d37f8 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Mon, 15 Apr 2019 18:15:27 +0900 Subject: Use `getvfsnumber()` to retrieve filesystem name on OSF/1 (Tru64) Signed-off-by: OBATA Akio --- ksim/monitors/filesystem/filesystemstats.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3