Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322118
b: refs/heads/master
c: 45f2e08
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Aug 21, 2012
1 parent 55a16de commit 2affed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d4221b53707486dfad3f5bfe568d2ce7f4c9863
refs/heads/master: 45f2e081f573526977abfa781a12728f83e9641f
3 changes: 2 additions & 1 deletion trunk/fs/ceph/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ static long __validate_layout(struct ceph_mds_client *mdsc,
/* validate striping parameters */
if ((l->object_size & ~PAGE_MASK) ||
(l->stripe_unit & ~PAGE_MASK) ||
((unsigned)l->object_size % (unsigned)l->stripe_unit))
(l->stripe_unit != 0 &&
((unsigned)l->object_size % (unsigned)l->stripe_unit)))
return -EINVAL;

/* make sure it's a valid data pool */
Expand Down

0 comments on commit 2affed0

Please sign in to comment.