Whamcloud - gitweb
LU-6214 llite: tar restore fails for HSM released files. 60/16060/13
authorAditya Pandit <panditadityashreesh@yahoo.com>
Mon, 31 Aug 2015 10:32:00 +0000 (16:02 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 22 Sep 2015 23:23:12 +0000 (23:23 +0000)
commitb567f5066b7ca2d15d4f492ec205651c9a63ef98
treecd826221672f086dda38c5216674a0d1662c04ee
parentb937be892a3dc68dd2fe3f248608937a8a79d424
LU-6214 llite: tar restore fails for HSM released files.

If you create a file, archive and release it, it keeps only a
link and all information in xattr. If you tar the file
with --xattr you will store the same striping information and link
information in the tar. If you delete the file, the file and archive
state does not make sense. Now if you restore the file using tar
with xattr having the RELEASED flag turned on, then it is not correct
because this is a new file. Hence ignoring the HSM xattr and masking
out the "RELEASED" flag for the files, which are not archived.
Added testcase for the same.

Change-Id: I0ca8636bf508211d63ba796c3b756c9cb4b42d48
Signed-off-by: Aditya Pandit <panditadityashreesh@yahoo.com>
Reviewed-on: http://review.whamcloud.com/16060
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: frank zago <fzago@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_user.h
lustre/llite/xattr.c
lustre/tests/sanity-hsm.sh