summaryrefslogtreecommitdiffstats
path: root/src/test/test_common.sh
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2010-11-15 21:31:43 +0100
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>2010-11-15 21:31:43 +0100
commitc293b9af1c72efab5600508bb9ae74e61448a4a6 (patch)
tree64d6196e4f5513b390a566da39ba6d2d119668ac /src/test/test_common.sh
parenttest_unfound.sh: fix return codes (diff)
downloadceph-c293b9af1c72efab5600508bb9ae74e61448a4a6.tar.xz
ceph-c293b9af1c72efab5600508bb9ae74e61448a4a6.zip
test_common.sh: add dump_osd_store
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
Diffstat (limited to 'src/test/test_common.sh')
-rwxr-xr-xsrc/test/test_common.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/test_common.sh b/src/test/test_common.sh
index 97701d3e64d..75a0770b880 100755
--- a/src/test/test_common.sh
+++ b/src/test/test_common.sh
@@ -116,4 +116,13 @@ poll_cmd() {
return 0
}
+dump_osd_store() {
+ set +x
+ find ./dev/osd* -type f | grep obj | grep head$ | while read file; do
+ echo $file
+ head -c 10 $file
+ echo
+ done
+}
+
init