Whamcloud - gitweb
LU-4569 hsm: Prevent copytool from importing existing file. 85/10185/3
authorHenri Doreau <henri.doreau@cea.fr>
Thu, 1 May 2014 09:57:34 +0000 (11:57 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 20 May 2014 04:47:45 +0000 (04:47 +0000)
commit8dfee22dd5a896144fb913f5f9f0e8f5c0e4ed86
treea07a11c970e2083b9c8623743fecaa43d3c905cc
parentc0a8fa3749834fa1e6f148ffec8b58ea578c1af4
LU-4569 hsm: Prevent copytool from importing existing file.

Requesting import of an already existing FID can lead to data
corruption since both inodes in lustre would refer to the same
file in the backend.

Signed-off-by: Henri Doreau <henri.doreau@cea.fr>
Change-Id: I38bab1c890ff84b22f8816597f6d0b367aba4b38
Reviewed-on: http://review.whamcloud.com/10185
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lhsmtool_posix.c