Skip to content

Commit 0a39cce

Browse files
committed
Only mention Lustre parameters if lustre options were used.
1 parent f3c0c73 commit 0a39cce

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/ior.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,16 +1486,18 @@ static void ShowSetup(IOR_param_t *params)
14861486
printf("\taggregate filesize = %s\n",
14871487
HumanReadable(params->expectedAggFileSize, BASE_TWO));
14881488
#ifdef HAVE_LUSTRE_LUSTRE_USER_H
1489-
printf("\tLustre stripe size = %s\n",
1490-
((params->lustre_stripe_size == 0) ? "Use default" :
1491-
HumanReadable(params->lustre_stripe_size, BASE_TWO)));
1492-
if (params->lustre_stripe_count == 0) {
1493-
printf("\t stripe count = %s\n", "Use default");
1494-
} else {
1495-
printf("\t stripe count = %d\n",
1496-
params->lustre_stripe_count);
1489+
if (params->lustre_set_striping) {
1490+
printf("\tLustre stripe size = %s\n",
1491+
((params->lustre_stripe_size == 0) ? "Use default" :
1492+
HumanReadable(params->lustre_stripe_size, BASE_TWO)));
1493+
if (params->lustre_stripe_count == 0) {
1494+
printf("\t stripe count = %s\n", "Use default");
1495+
} else {
1496+
printf("\t stripe count = %d\n",
1497+
params->lustre_stripe_count);
1498+
}
14971499
}
1498-
#endif /* HAVE_LUSTRE_LUSTRE_USER_H */
1500+
#endif /* HAVE_LUSTRE_LUSTRE_USER_H */
14991501
if (params->deadlineForStonewalling > 0) {
15001502
printf("\tUsing stonewalling = %d second(s)\n",
15011503
params->deadlineForStonewalling);

0 commit comments

Comments
 (0)