Whamcloud - gitweb
LU-6213 llite: add LL_IOC_FUTIMES_3 65/13665/5
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 5 Feb 2015 23:35:08 +0000 (17:35 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Aug 2015 15:44:35 +0000 (15:44 +0000)
commit12e4004656f3019d0195d46de6df94af7452fdf8
tree351afb897f2a3acbfbb2f6b6c07bf8990afb75dc
parentdcb9169ceea7a054760a5536c4197ba20ecf31a8
LU-6213 llite: add LL_IOC_FUTIMES_3

Add a new regular file ioctl LL_IOC_FUTIMES_3 similar to futimes() but
which allows setting of all three inode timestamps. Use this ioctl
during HSM restore to ensure that the volatile file has the same
timestamps as the file to be restored. Strengthen sanity-hsm test_24a
to check that archive, release, and restore do not change a file's
ctime. Add sanity-hsm test_24e to check that tar will succeed when it
encounters a HSM released file.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I98a4913048f902892fdafc514547bbe4d51523d7
Reviewed-on: http://review.whamcloud.com/13665
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: frank zago <fzago@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_user.h
lustre/include/lustre_ioctl.h
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/tests/sanity-hsm.sh
lustre/utils/liblustreapi_hsm.c