This way, the MDS can handle updates of some values without needing
the user to specify the entire layout (ie, they can just switch pools).
This brings the behavior more in line with setting the dir layout.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
}
// validate layout
- ceph_file_layout layout;
- memset(&layout, 0, sizeof(layout));
- layout.fl_cas_hash = 0; // default value; "none"
- layout.fl_pg_pool = 0; // default value "data" pool
- layout.fl_pg_preferred = -1; // default value; "none"
+ ceph_file_layout layout = cur->get_projected_inode()->layout;
if (req->head.args.setlayout.layout.fl_object_size > 0)
layout.fl_object_size = req->head.args.setlayout.layout.fl_object_size;