Whamcloud - gitweb
LU-9771 clio: no glimpse for data immutable file 84/29084/12
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 14 Jul 2017 23:22:46 +0000 (16:22 -0700)
committerJinshan Xiong <jinshan.xiong@intel.com>
Fri, 17 Nov 2017 08:00:19 +0000 (08:00 +0000)
commitce61bcac8661e08ffa2a6ec4b9782f11cd3388c6
tree1bf222ed951ffac0fa450e4d682d61562534442e
parentb879bbc27db53ecc899f6007bf4fe0d993615def
LU-9771 clio: no glimpse for data immutable file

When merging a layout to an existing file as a mirror, client will
report the size and blocks to the MDT, which will be set to the MDT
object. In that case, if the MDT discovers a mirrored file in
READ_ONLY state, it will report the size and blocks. Clients should
take this advantage and skip glimpse.

Test-Parameters: testlist=sanity-flr
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I60831689116e6c5dd0311dea62b91dd0ae3cfd56
Reviewed-on: https://review.whamcloud.com/29084
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/file.c
lustre/lov/lov_io.c
lustre/mdt/Makefile.in
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/mdt/mdt_som.c [new file with mode: 0644]
lustre/tests/sanity-flr.sh