Skip to content

Commit

Permalink
qa: kclient/file_layout.sh: ...
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
Sage Weil committed Mar 13, 2012
1 parent 0a2068f commit e5934f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qa/workunits/kclient/file_layout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,17 @@ touch layout_test/file3
cephfs layout_test/file3 show_layout > temp
diff new_layout temp || return 1
sudo ls /sys/kernel/debug/ceph
sudo cat /sys/kernel/debug/ceph/\*/mdsmap > temp
sudo ls /sys/kernel/debug/ceph/\* || true
sudo bash -c 'ls /sys/kernel/debug/ceph/*' || true
sudo bash -c '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
sudo bash -c 'cat /sys/kernel/debug/ceph/*/mdsmap' > temp2
while diff -q temp2 temp
do
echo "waiting for mdsmap to update"
sleep 1
sudo cat /sys/kernel/debug/ceph/\*/mdsmap > temp2
sudo bash -c 'cat /sys/kernel/debug/ceph/*/mdsmap' > temp2
done
sudo rm temp temp2

Expand Down

0 comments on commit e5934f1

Please sign in to comment.