X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fost-pools.sh;h=ad56980551a742cfd3199f02879cce556205c8c3;hb=681101c0a1eceed0caa6fc5b7e748ba868e436cf;hp=dd13c6b900b3ef60ab058224f0b2a26364f0cb61;hpb=cdc5584358e20d12ca28bb190d2f4aae3b14dbb3;p=fs%2Flustre-release.git diff --git a/lustre/tests/ost-pools.sh b/lustre/tests/ost-pools.sh index dd13c6b..ad56980 100644 --- a/lustre/tests/ost-pools.sh +++ b/lustre/tests/ost-pools.sh @@ -155,15 +155,15 @@ check_file_not_in_pool() { } check_dir_not_in_pool() { - local dir=$1 - local pool=$2 - local res=$($GETSTRIPE -v $dir | grep "^stripe_count" | head -1 | - cut -f 8 -d ' ') - if [[ "$res" == "$pool" ]]; then - error "File $dir is in pool: $res" - return 1 - fi - return 0 + local dir=$1 + local pool=$2 + local res=$($GETSTRIPE -v $dir | grep "^stripe_count" | head -n1 | + cut -f 8 -d ' ') + if [[ "$res" == "$pool" ]]; then + error "File $dir is in pool: $res" + return 1 + fi + return 0 } drain_pool() {