Skip to content
Snippets Groups Projects
Commit 35158d1c authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=13557 (author Adilger)

print the stripecount as a signed value
parent bba30204
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,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, "%d\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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment