mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
qa/workunits: Add vxattr set pool test script
Add a test script that tests for creating a pool and then setting the layout for a (pre-existing) file to that pool. Signed-off-by: Sam Lang <sam.lang@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
5517000fbb
commit
ed6c3ff50c
13
qa/workunits/misc/mkpool_layout_vxattrs.sh
Executable file
13
qa/workunits/misc/mkpool_layout_vxattrs.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
touch foo.$$
|
||||
rados mkpool foo.$$
|
||||
poolid=$(ceph osd dump | grep "^pool" | awk '{print $2}' | tail -n 1)
|
||||
ceph mds add_data_pool ${poolid}
|
||||
setfattr -n ceph.file.layout.pool -v foo.$$ foo.$$
|
||||
|
||||
# cleanup
|
||||
rados rmpool foo.$$ foo.$$ --yes-i-really-really-mean-it
|
||||
rm foo.$$
|
Loading…
Reference in New Issue
Block a user