diff options
author | Josh Durgin <josh.durgin@dreamhost.com> | 2011-09-09 14:47:42 -0700 |
---|---|---|
committer | Josh Durgin <josh.durgin@dreamhost.com> | 2011-09-09 14:48:20 -0700 |
commit | b37b61eb768e20c150bdc8d672b2fbdc2e2e469e (patch) | |
tree | c74c14961719e59766fd746ea8af25f80493e1da /qa | |
parent | efaf91b665c6a00a10096bb5b5731d65c2ba398a (diff) | |
download | ceph-b37b61eb768e20c150bdc8d672b2fbdc2e2e469e.tar.gz |
workunit: use sudo when first reading /sys... too
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/workunits/kclient/file_layout.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/workunits/kclient/file_layout.sh b/qa/workunits/kclient/file_layout.sh index 51a9ad93eb0..3b579a7d016 100755 --- a/qa/workunits/kclient/file_layout.sh +++ b/qa/workunits/kclient/file_layout.sh @@ -51,7 +51,7 @@ echo "hello, I'm a file with a custom layout" > layout_test/file2 touch layout_test/file3 cephfs layout_test/file3 show_layout > temp diff new_layout temp || return 1 -cat /sys/kernel/debug/ceph/*/mdsmap > temp +sudo cat /sys/kernel/debug/ceph/*/mdsmap > temp ceph osd pool create newpool || true ceph mds add_data_pool 3 || true sudo cat /sys/kernel/debug/ceph/*/mdsmap > temp2 @@ -61,7 +61,7 @@ do sleep 1 sudo cat /sys/kernel/debug/ceph/*/mdsmap > temp2 done -sudo rm temp2 +sudo rm temp temp2 cephfs layout_test/file3 set_layout -p 3 cephfs layout_test/file3 show_layout > temp |