Whamcloud - gitweb
LU-3432 llite: Access to released file trigs a restore 37/6537/13
authorjcl <jacques-charles.lafoucriere@cea.fr>
Mon, 3 Jun 2013 15:01:51 +0000 (17:01 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 17 Jul 2013 05:19:35 +0000 (05:19 +0000)
commitbfced13aa799eb9919a2c1f313f6c4954409747d
tree66212a65e8dfaceaabe5ed3197e463538d4cb354
parent90e1ec3035c82ae9cc1ad471c0c8cad7d448f23f
LU-3432 llite: Access to released file trigs a restore

When a client accesses data in a released file,
or truncate it, client must trig a restore request.
During this restore, the client must not glimpse and
must use size from MDT. To bring the "restore is running"
information on the client we add a new t_state bit field
to mdt_info which will be used to carry transient file state.
To memorise this information in the inode we add a new flag
LLIF_FILE_RESTORING.

Signed-off-by: JC Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Change-Id: I4f3cde9cb247760075f6872b1d1c299ef369a7ae
Reviewed-on: http://review.whamcloud.com/6537
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Tested-by: Oleg Drokin <oleg.drokin@intel.com>
17 files changed:
lustre/include/cl_object.h
lustre/include/lustre/lustre_idl.h
lustre/lclient/lcommon_cl.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/vvp_io.c
lustre/lov/lov_io.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_hsm.c
lustre/mdt/mdt_internal.h
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/wirehdr.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c