Feature #2227
closedQA: create a test to verify operation with non-default layouts
0%
Description
I submitted a patch that modified ceph_calc_file_object_mapping()
in the ceph client, and when reviewing it Sage pointed out that
there may not be a good test to verify non-default file layouts.
Here's what he said:
It would be nice to have a test that runs some tool that verifies re-read
data (iozone?) run when non-default file layouts. Say, 1MB stripes over 9
13MB objects, something like that. The 'cephfs' command line utility can
be used to set the default layout for new files under a
subdirectory/subtree, so running it on . in a workunit bash script (e.g.
based on ceph.git/qa/workunits/suites/iozone.sh) should do the trick.
('cephfs' only works on the kclient, though, so it needs to be a distinct
script that we don't already run on ceph-fuse... probably stick it in the
qa/workunits/kclient directory).
Not that this code was thoroughly tested with weird layouts before or
anything , but it would be nice to see that before we merge this in.
So this is just recording that this ought to be done. I'll see if I can
do manually what he generally suggests here, and we can see about making
the result into an automated test.