summaryrefslogtreecommitdiff
path: root/qa/mds
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-06-29 09:51:36 -0700
committerSage Weil <sage@newdream.net>2011-06-29 09:51:36 -0700
commitb5510a6641fee07231c1e010a8d0c74e4cac7bea (patch)
treef53a9c065fe357324e579c07ac62b4807466d9e1 /qa/mds
parentc292cce309ad5c517952f08156119cd10d869e4a (diff)
downloadceph-b5510a6641fee07231c1e010a8d0c74e4cac7bea.tar.gz
qa: move file_layout into workunits/misc
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'qa/mds')
-rw-r--r--qa/mds/file_layout.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/qa/mds/file_layout.sh b/qa/mds/file_layout.sh
deleted file mode 100644
index 8a5877db908..00000000000
--- a/qa/mds/file_layout.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh -ex
-
-MB=1048576
-twoMB=$((2*MB))
-
-rm -r layout_test || true
-rm new_layout || true
-rm file2_layout || true
-rm temp || true
-
-echo "layout.data_pool: 0
-layout.object_size: 1048576
-layout.stripe_unit: 1048576
-layout.stripe_count: 1
-layout.preferred_osd: -1" > new_layout
-echo "layout.data_pool: 0
-layout.object_size: 2097152
-layout.stripe_unit: 1048576
-layout.stripe_count: 2
-layout.preferred_osd: -1" > file2_layout
-
-mkdir layout_test
-./cephfs layout_test show_layout
-./cephfs layout_test set_layout -u $MB -c 1 -s $MB
-touch layout_test/file1
-./cephfs layout_test/file1 show_layout > temp
-diff new_layout temp || return 1
-`echo "hello, I'm a file" > layout_test/file1`
-./cephfs layout_test/file1 show_layout > temp
-diff new_layout temp || return 1
-touch layout_test/file2
-./cephfs layout_test/file2 show_layout > temp
-diff new_layout temp || return 1
-./cephfs layout_test/file2 set_layout -u $MB -c 2 -s $twoMB
-./cephfs layout_test/file2 show_layout > temp
-diff file2_layout temp || return 1
-
-echo "hello, I'm a file with a custom layout" > layout_test/file2
-sync
-echo "Completed all file layout tests!" \ No newline at end of file