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-6051 utils: improve efficiency of lfs_migrate cmp
[fs/lustre-release.git]
/
lustre
/
scripts
/
lfs_migrate
diff --git
a/lustre/scripts/lfs_migrate
b/lustre/scripts/lfs_migrate
index
e9c8aae
..
f9cf91c
100755
(executable)
--- a/
lustre/scripts/lfs_migrate
+++ b/
lustre/scripts/lfs_migrate
@@
-177,7
+177,7
@@
lfs_migrate() {
exit 4
fi
- if [ "$OPT_CHECK" ] && ! cmp "$OLDNAME" "$NEWNAME"; then
+ if [ "$OPT_CHECK" ] && ! cmp
-s
"$OLDNAME" "$NEWNAME"; then
echo -e "\r$NEWNAME: compare failed, exiting" 1>&2
exit 8
fi