Whamcloud - gitweb
LU-3365 lmv: support DNE with HSM.
[fs/lustre-release.git] / lustre / utils / llobdstat
old mode 100644 (file)
new mode 100755 (executable)
index 9c9cf5a..733cb4b
@@ -33,11 +33,10 @@ if (($#ARGV < 0) || ($#ARGV > 2)) {
     } elsif ( -f "$ARGV[0]/$obdstats" ) {
         $statspath = "$ARGV[0]/$obdstats";
     } else {
-        my $st = `ls $defaultpath/obdfilter/$ARGV[0]/$obdstats 2> /dev/null`;
-        chop $st;
-        if ( -f "$st" ) {
-            $statspath = $st;
-        }
+       my $st = "$defaultpath/obdfilter/$ARGV[0]/$obdstats";
+       if ( -f "$st" ) {
+           $statspath = $st;
+       }
     }
     if ( $statspath =~ /^None$/ ) {
         die "Cannot locate stat file for: $ARGV[0]\n";