Whamcloud - gitweb
LU-8041 mdd: increasing only atime update on close 32/19932/3
authorNiu Yawei <yawei.niu@intel.com>
Tue, 3 May 2016 07:18:17 +0000 (03:18 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 May 2016 16:37:34 +0000 (16:37 +0000)
commitc9d4cdd9c8719988f50a76271ce48ef811411fdd
tree71dd50675a74860f79fb5852cf30fb94b02180e9
parent895527a77d23ea71e030c81a7cc86d71249e380c
LU-8041 mdd: increasing only atime update on close

The atime update on close should be increasing only, otherwise,
the atime could be overwritten by stale client's atime.

This patch also changed client to clear out the ATTR_ATIME
flag fro close RPC when atime == 0, so that patch client won't
overwrite the unpatched server with 0 atime.

A test case sanity 39p is added to verify that close won't
overwrite atime with zero, and sanity 39l is adjusted as well.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I40d1103ddfea184d82170a6795f89ce303a5c14e
Reviewed-on: http://review.whamcloud.com/19932
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdc/mdc_lib.c
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh