diff options
author | Greg Farnum <gregory.farnum@dreamhost.com> | 2011-06-24 03:06:01 +0200 |
---|---|---|
committer | Greg Farnum <gregory.farnum@dreamhost.com> | 2011-06-27 21:07:45 +0200 |
commit | 92b0e8e8e4af38284ad57a4e90ce439674e928e2 (patch) | |
tree | 4bcd445eab176cab710350030a6c24eb350541f7 /qa/mds | |
parent | filer: no need for tid_t here (diff) | |
download | ceph-92b0e8e8e4af38284ad57a4e90ce439674e928e2.tar.xz ceph-92b0e8e8e4af38284ad57a4e90ce439674e928e2.zip |
qa: initial commit of file_layout.sh
This tests the file layout functionality. Right now you need to
check the comparisons yourself. Expect that to change shortly.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Diffstat (limited to 'qa/mds')
-rw-r--r-- | qa/mds/file_layout.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qa/mds/file_layout.sh b/qa/mds/file_layout.sh new file mode 100644 index 00000000000..63808f405a2 --- /dev/null +++ b/qa/mds/file_layout.sh @@ -0,0 +1,16 @@ +#!/bin/sh -ex + +MB=1048576 +twoMB=$((2*MB)) + +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 +`echo "hello, I'm a file" > layout_test/file1` +./cephfs layout_test/file1 show_layout +touch layout_test/file2 +./cephfs layout_test/file2 show_layout +./cephfs layout_test/file2 set_layout -u $MB -c 2 -s $twoMB +./cephfs layout_test/file2 show_layout
\ No newline at end of file |