Whamcloud - gitweb
Detect and print out the 'stripe count = -1' case properly.
authordeen <deen>
Tue, 1 Sep 2009 16:50:16 +0000 (16:50 +0000)
committerdeen <deen>
Tue, 1 Sep 2009 16:50:16 +0000 (16:50 +0000)
b=20463
i=robert.read
i=nathan.rutman

lustre/ChangeLog
lustre/utils/liblustreapi.c

index 36ac19d..8af4b8c 100644 (file)
@@ -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. <info@clusterfs.com>
index 7a315c7..2cbd933 100644 (file)
@@ -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) {