Whamcloud - gitweb
LU-6166 utils: fix bug in lr_link 46/13546/2
authorWu Libin <lwu@ddn.com>
Wed, 28 Jan 2015 06:17:06 +0000 (14:17 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 8 Feb 2015 02:43:34 +0000 (02:43 +0000)
commit20520e9a2667f63a2630b2f1636e3be5e76d8987
tree5e7b5663d8df8ce8f80aa5382fa898c1991cca17
parentdcf2a82d148797b4ac204a65ec795cde141e1d3b
LU-6166 utils: fix bug in lr_link

When create a hard link of a file, the path and the file name are
same if it at the root directory, so the length of the path and name
will be the same in this case.

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