Whamcloud - gitweb
LU-6051 utils: improve efficiency of lfs_migrate cmp 78/25878/2
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 8 Mar 2017 00:12:18 +0000 (17:12 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 26 Mar 2017 06:50:53 +0000 (06:50 +0000)
commitd32895446d4f74b6e49513109007736a4fe48df2
tree8d0d17dbb709de3f7e0089f511133feaddfeb3d7
parent9b056eeba604310c35b0b1b94f3e6da25909896f
LU-6051 utils: improve efficiency of lfs_migrate cmp

The file comparison used by lfs_migrate could be more efficient by
using the "cmp -s" option to avoid printing byte-by-byte differences.
This allows faster comparisons via memcmp() and comparing the file
size.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I424538388d7e31609fa1f875128f03fef33ebbe5
Reviewed-on: https://review.whamcloud.com/25878
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/scripts/lfs_migrate