ceph: let the set_layout ioctl set single traits
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 25 Aug 2011 19:43:06 +0000 (12:43 -0700)
committerSage Weil <sage@newdream.net>
Tue, 25 Oct 2011 23:10:16 +0000 (16:10 -0700)
commita35eca958aa1c7d0b5f993db1a3ded45ae16d59b
tree4d496b38cdd39d3363aaf23888f1932422ce5682
parent83eaea22bdfc9e1cec88f81be5b64f30f6c37e8b
ceph: let the set_layout ioctl set single traits

Previously we were validating the passed-in stripe unit, object size,
and stripe count against each other (and not testing most other stuff).
Instead, make sure that the composed previous layout and new values are valid,
and only send the new values to the MDS. This lets users change the
pool without setting the whole layout, for instance.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
fs/ceph/ioctl.c
This page took 0.027386 seconds and 5 git commands to generate.