From 4b63144a1ddf7d454852dde7819797ed32b50940 Mon Sep 17 00:00:00 2001 From: "Glenn K. Lockwood" Date: Thu, 19 May 2016 19:38:33 -0700 Subject: [PATCH] fixed bug that was preventing OST/MDT counts from being populated correctly --- darshan-runtime/lib/darshan-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darshan-runtime/lib/darshan-core.c b/darshan-runtime/lib/darshan-core.c index 7917740..be3b6a2 100644 --- a/darshan-runtime/lib/darshan-core.c +++ b/darshan-runtime/lib/darshan-core.c @@ -985,7 +985,7 @@ static void add_entry(char* trailing_data, int* space_left, struct mntent *entry ret_ost = ioctl( dirfd(mount_dir), LL_IOC_GETOBDCOUNT, &n_ost ); ret_mdt = ioctl( dirfd(mount_dir), LL_IOC_GETOBDCOUNT, &n_mdt ); - if ( ret_ost < 0 || ret_mdt < 0 ) + if ( !(ret_ost < 0 || ret_mdt < 0) ) { mnt_data_array[mnt_data_count].fs_info.ost_count = n_ost; mnt_data_array[mnt_data_count].fs_info.mdt_count = n_mdt; -- 2.26.2