Whamcloud - gitweb
LU-3832 clio: honor O_NOATIME 42/7442/4
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 23 Aug 2013 19:50:17 +0000 (14:50 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 30 Aug 2013 19:08:03 +0000 (19:08 +0000)
commit6c74e4d72fe4f37a1487de24214a3ca75e57080c
tree800877114fcfe3d3836a547efe812d45d86657a6
parentc03d8b1fe386cfb7b8bf58923d293b87832481f9
LU-3832 clio: honor O_NOATIME

Add a ci_noatime bit to struct cl_io. In ll_io_init() set this bit if
O_NOATIME is set in f_flags. Ensure that this bit is propagated down
to lower layers. In osc_io_read_start() don't update atime if this bit
is set. Add sanity test 39n to check that passing O_NOATIME to open()
is honored.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I3e7ab1d777e897ce7840ad6b1b067a571fa2bff4
Reviewed-on: http://review.whamcloud.com/7442
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/cl_object.h
lustre/llite/file.c
lustre/lov/lov_io.c
lustre/osc/osc_io.c
lustre/tests/multiop.c
lustre/tests/sanity.sh