Only mention Lustre parameters if lustre options were used.

master
Christopher J. Morrone 2012-01-13 16:57:21 -08:00
parent f3c0c73dfd
commit 0a39cced3c
1 changed files with 11 additions and 9 deletions

View File

@ -1486,16 +1486,18 @@ static void ShowSetup(IOR_param_t *params)
printf("\taggregate filesize = %s\n",
HumanReadable(params->expectedAggFileSize, BASE_TWO));
#ifdef HAVE_LUSTRE_LUSTRE_USER_H
printf("\tLustre stripe size = %s\n",
((params->lustre_stripe_size == 0) ? "Use default" :
HumanReadable(params->lustre_stripe_size, BASE_TWO)));
if (params->lustre_stripe_count == 0) {
printf("\t stripe count = %s\n", "Use default");
} else {
printf("\t stripe count = %d\n",
params->lustre_stripe_count);
if (params->lustre_set_striping) {
printf("\tLustre stripe size = %s\n",
((params->lustre_stripe_size == 0) ? "Use default" :
HumanReadable(params->lustre_stripe_size, BASE_TWO)));
if (params->lustre_stripe_count == 0) {
printf("\t stripe count = %s\n", "Use default");
} else {
printf("\t stripe count = %d\n",
params->lustre_stripe_count);
}
}
#endif /* HAVE_LUSTRE_LUSTRE_USER_H */
#endif /* HAVE_LUSTRE_LUSTRE_USER_H */
if (params->deadlineForStonewalling > 0) {
printf("\tUsing stonewalling = %d second(s)\n",
params->deadlineForStonewalling);