Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3365 lmv: support DNE with HSM.
[fs/lustre-release.git]
/
lustre
/
utils
/
llobdstat
diff --git
a/lustre/utils/llobdstat
b/lustre/utils/llobdstat
old mode 100644
(file)
new mode 100755
(executable)
index
9c9cf5a
..
733cb4b
--- a/
lustre/utils/llobdstat
+++ b/
lustre/utils/llobdstat
@@
-33,11
+33,10
@@
if (($#ARGV < 0) || ($#ARGV > 2)) {
} elsif ( -f "$ARGV[0]/$obdstats" ) {
$statspath = "$ARGV[0]/$obdstats";
} else {
} 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";
}
if ( $statspath =~ /^None$/ ) {
die "Cannot locate stat file for: $ARGV[0]\n";