From 4c4ec8c199d9f5e789f6c97323c0eb81be16b079 Mon Sep 17 00:00:00 2001 From: johann Date: Thu, 27 Nov 2008 10:48:44 +0000 Subject: [PATCH] Branch b1_8_gate b=12596 i=grev i=adilger check striping after setstripe in recovery-small test 18*. move get_stripe_info() to t-f. --- lustre/tests/test-framework.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index a0acdae..2295e3c 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1855,3 +1855,20 @@ check_catastrophe () { fi } +# $1 node +# $2 file +get_stripe_info() { + local tmp_file + + stripe_size=0 + stripe_count=0 + stripe_index=0 + tmp_file=$(mktemp) + + do_facet $1 lfs getstripe -v $2 > $tmp_file + + stripe_size=`awk '$1 ~ /size/ {print $2}' $tmp_file` + stripe_count=`awk '$1 ~ /count/ {print $2}' $tmp_file` + stripe_index=`awk '/obdidx/ {start = 1; getline; print $1; exit}' $tmp_file` + rm -f $tmp_file +} -- 1.8.3.1