Whamcloud - gitweb
b=20101 lfs getstripe -d test for sanity 27w
authorAndrew Perepechko <Andrew.Perepechko@sun.com>
Wed, 17 Mar 2010 07:00:49 +0000 (10:00 +0300)
committerMikhail Pershin <tappro@sun.com>
Wed, 17 Mar 2010 07:01:16 +0000 (10:01 +0300)
o=James Simmons (ORNL)
i=Andreas Dilger
i=Robert Read

lustre/tests/sanity.sh

index 7490e2c..c93d168 100644 (file)
@@ -1203,6 +1203,8 @@ test_27w() { # bug 10997
         $LSTRIPE $DIR/$tdir/f0 -s 65536 || error "lstripe failed"
         size=`$GETSTRIPE $DIR/$tdir/f0 -s`
         [ $size -ne 65536 ] && error "stripe size $size != 65536" || true
         $LSTRIPE $DIR/$tdir/f0 -s 65536 || error "lstripe failed"
         size=`$GETSTRIPE $DIR/$tdir/f0 -s`
         [ $size -ne 65536 ] && error "stripe size $size != 65536" || true
+        gsdir=$($LFS getstripe -d $DIR/$tdir)
+        [ $(echo $gsdir | grep -c stripe_count) -ne 1 ] && error "$LFS getstripe -d $DIR/$tdir failed"
 
         [ "$OSTCOUNT" -lt "2" ] && skip_env "skipping multiple stripe count/offset test" && return
         for i in `seq 1 $OSTCOUNT`; do
 
         [ "$OSTCOUNT" -lt "2" ] && skip_env "skipping multiple stripe count/offset test" && return
         for i in `seq 1 $OSTCOUNT`; do