From b37b61eb768e20c150bdc8d672b2fbdc2e2e469e Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Fri, 9 Sep 2011 14:47:42 -0700 Subject: [PATCH] workunit: use sudo when first reading /sys... too Signed-off-by: Josh Durgin --- qa/workunits/kclient/file_layout.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/workunits/kclient/file_layout.sh b/qa/workunits/kclient/file_layout.sh index 51a9ad93eb0ad..3b579a7d0165b 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 -- 2.39.5