From 278a6ae09795b64c7c2456cae3b53e9e0a49ea87 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 6 Aug 2015 14:59:36 +0100 Subject: [PATCH] qa: add fs layout case for stripe_size decrease The case fixed by commit: mds: fix setting whole layout in one vxattr Signed-off-by: John Spray --- qa/workunits/fs/misc/layout_vxattrs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/workunits/fs/misc/layout_vxattrs.sh b/qa/workunits/fs/misc/layout_vxattrs.sh index 3cb611ded53..7284ab67783 100755 --- a/qa/workunits/fs/misc/layout_vxattrs.sh +++ b/qa/workunits/fs/misc/layout_vxattrs.sh @@ -45,6 +45,12 @@ getfattr -n ceph.file.layout.stripe_count file2 | grep -q 16 getfattr -n ceph.file.layout.object_size file2 | grep -q 41943040 getfattr -n ceph.file.layout.pool file2 | grep -q data +setfattr -n ceph.file.layout -v "stripe_unit=2097152 stripe_count=4 object_size=2097152 pool=data" file2 +getfattr -n ceph.file.layout.stripe_unit file2 | grep -q 2097152 +getfattr -n ceph.file.layout.stripe_count file2 | grep -q 4 +getfattr -n ceph.file.layout.object_size file2 | grep -q 2097152 +getfattr -n ceph.file.layout.pool file2 | grep -q data + # dir rm -f dir/file || true rmdir dir || true -- 2.47.3