]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix setting whole layout in one vxattr 5491/head
authorJohn Spray <john.spray@redhat.com>
Thu, 6 Aug 2015 12:10:08 +0000 (13:10 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 6 Aug 2015 12:14:44 +0000 (13:14 +0100)
commit880ffe9de56ae39d310f5a2063e63c0f8f0edcec
tree96cdb315f69621a239fbf89a446768359aebdb27
parentadd30145a414969d6acaf014f31a288b4789fe4f
mds: fix setting whole layout in one vxattr

Previously we were validating the layout
after setting each field, so even when
setting multiple fields in one go (to
something valid) the intermediate states
could be invalid and cause a bogus EINVAL.

For example try setting object_size and stripe_unit
both to 2M in one go.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/Server.cc
src/mds/Server.h