Whamcloud - gitweb
LU-6167 utils: fix bugs in lustre_sync 45/13545/3
authorWu Libin <lwu@ddn.com>
Wed, 28 Jan 2015 05:55:20 +0000 (13:55 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Feb 2015 02:40:48 +0000 (02:40 +0000)
commitdcf2a82d148797b4ac204a65ec795cde141e1d3b
tree507feffceeacfbc8b404684740113ce5dbacd8b8
parent7b241f0d9e823bbd63663c53d1cfc59dffbb91b6
LU-6167 utils: fix bugs in lustre_sync

The lustre_rsync will cause endloop and core dump problems, this
patch fix this problems. In function lr_cascade_move, it should
delete "curr" node in the "parents" list first, then move to the
next lr_cascade_move.

Signed-off-by: Wu Libin <lwu@ddn.com>
Change-Id: I5a5686ab89379da37453d07a5a00df4fd217ee59
Reviewed-on: http://review.whamcloud.com/13545
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lustre_rsync.c