]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add fs layout case for stripe_size decrease 5492/head
authorJohn Spray <john.spray@redhat.com>
Thu, 6 Aug 2015 13:59:36 +0000 (14:59 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 6 Aug 2015 13:59:36 +0000 (14:59 +0100)
The case fixed by commit:
 mds: fix setting whole layout in one vxattr

Signed-off-by: John Spray <john.spray@redhat.com>
qa/workunits/fs/misc/layout_vxattrs.sh

index 3cb611ded5317b25378ebf1b1deef33bed0c4c23..7284ab6778353c43f084ca7fbc1b4e3ab2b8d50a 100755 (executable)
@@ -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