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

b=13557 (author Adilger)

i=Nathan

print the stripecount as a signed value
parent 54896bbf
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,8 @@ static int lov_rd_stripecount(char *page, char **start, off_t off, int count, ...@@ -133,7 +133,8 @@ static int lov_rd_stripecount(char *page, char **start, off_t off, int count,
LASSERT(dev != NULL); LASSERT(dev != NULL);
desc = &dev->u.lov.desc; desc = &dev->u.lov.desc;
*eof = 1; *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, 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