From d389117ffc6da40b2a095d11d4b8ec6a3c669716 Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Fri, 29 Feb 2008 15:26:32 +0000
Subject: [PATCH] b=13557 (author Adilger) i=Nathan

print the stripecount as a signed value
---
 lustre/lov/lproc_lov.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lustre/lov/lproc_lov.c b/lustre/lov/lproc_lov.c
index 15d1445903..4cf90c8610 100644
--- a/lustre/lov/lproc_lov.c
+++ b/lustre/lov/lproc_lov.c
@@ -133,7 +133,8 @@ static int lov_rd_stripecount(char *page, char **start, off_t off, int count,
         LASSERT(dev != NULL);
         desc = &dev->u.lov.desc;
         *eof = 1;
-        return snprintf(page, count, "%u\n", desc->ld_default_stripe_count);
+        return snprintf(page, count, "%ld\n",
+                        (long)(desc->ld_default_stripe_count + 1) - 1);
 }
 
 static int lov_wr_stripecount(struct file *file, const char *buffer,
-- 
GitLab