Whamcloud - gitweb
LU-6095 tests: define TRUNCATE program for racer
[fs/lustre-release.git] / lustre / tests / racer / dir_remote.sh
index 1bc9c3a..6c3132c 100755 (executable)
@@ -3,13 +3,13 @@
 DIR=$1
 MAX=$2
 
-MDTCOUNT=${MDSCOUNT:-$(lfs df $DIR 2> /dev/null | grep -c MDT)}
+MDTCOUNT=${MDSCOUNT:-$($LFS df $DIR 2> /dev/null | grep -c MDT)}
 while /bin/true ; do
        remote_dir=$((RANDOM % MAX))
        file=$((RANDOM % MAX))
        mdt_idx=$((RANDOM % MDTCOUNT))
        # stripe_count in range [1,MDTCOUNT]
-       # lfs mkdir treats stripe_count 0 and 1 the same
+       # $LFS mkdir treats stripe_count 0 and 1 the same
        stripe_count=$(((RANDOM % MDTCOUNT) + 1))
        mkdir -p $DIR 2> /dev/null
        $LFS mkdir -i$mdt_idx -c$stripe_count $DIR/$remote_dir 2> /dev/null