Whamcloud - gitweb
LU-9008 pfl: Read should not trigger layout write intent 22/26622/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 11 Apr 2017 11:08:16 +0000 (19:08 +0800)
committerJinshan Xiong <jinshan.xiong@intel.com>
Mon, 17 Apr 2017 05:05:14 +0000 (05:05 +0000)
commite3ae2055f629c9bfea32905cd44e22c692cd65d9
tree14c720db183933e731321e0c3489ea0c947a5183
parentd8701abb9b576ae295fd4cb861edcbbd36c103a3
LU-9008 pfl: Read should not trigger layout write intent

In lov_io_rw_iter_init(), only write not read operation should
trigger layout write intent.

For append write, it has to make sure all uninited components
are instantiated.

Page mkwrite should also trigger write intent.

Fixed sanity-pfl test cases as well - in order to instantiate
a component by truncate, the truncated size must be within the
extent of component.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I3c5257c5799ae0df35a572b9ee981f583260e8ec
Reviewed-on: https://review.whamcloud.com/26622
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/llite/vvp_io.c
lustre/lov/lov_io.c
lustre/tests/sanity-pfl.sh