From 115e01223067bfa6b6010fcc095c3e3df0242b2f Mon Sep 17 00:00:00 2001 From: deen Date: Tue, 1 Sep 2009 16:50:16 +0000 Subject: [PATCH] Detect and print out the 'stripe count = -1' case properly. b=20463 i=robert.read i=nathan.rutman --- lustre/ChangeLog | 5 +++++ lustre/utils/liblustreapi.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 36ac19d..8af4b8c 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -2205,6 +2205,11 @@ Details : In filter_commitrw_write(): lquota_chkquota() and lquota_pending_commit() to use different uid and gid. That is the root of the bug. +Severity : normal +Bugzilla : 20463 +Descriptoin: getstripe doesn't report stripe count = -1 sanely +Details : Detect and print out the 'stripe count = -1' case properly. + -------------------------------------------------------------------------------- 2007-08-10 Cluster File Systems, Inc. diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 7a315c7..2cbd933 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -1027,8 +1027,8 @@ static void lov_dump_user_lmm_header(struct lov_user_md *lum, char *path, if (!quiet) llapi_printf(LLAPI_MSG_NORMAL, "%sstripe_count: ", prefix); - llapi_printf(LLAPI_MSG_NORMAL, "%u%c", - (int)lum->lmm_stripe_count, nl); + llapi_printf(LLAPI_MSG_NORMAL, "%hd%c", + (__s16)lum->lmm_stripe_count, nl); } if (verbose & VERBOSE_SIZE) { -- 1.8.3.1