Commit 4b63144a authored by Glenn K. Lockwood's avatar Glenn K. Lockwood

fixed bug that was preventing OST/MDT counts from being populated correctly

parent 64a4a226
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment