diff --git a/lustre/lov/lproc_lov.c b/lustre/lov/lproc_lov.c index 15d1445903d568fc8ba6a351405114eb27e63397..4cf90c86105ca667cca096310c58871c1591079b 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,