Whamcloud - gitweb
LU-9008 pfl: Read should not trigger layout write intent 99/26499/10
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 11 Apr 2017 11:08:16 +0000 (19:08 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Apr 2017 03:39:54 +0000 (03:39 +0000)
commitb4b74ee1ef7a34c56ade16da892091eae28ef498
tree6d6dad6fd87e0cdbcc513b5e9482cea06ca2c047
parent1582846e218a7c4953bc0af2165f0af103657a77
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/26499
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/vvp_io.c
lustre/lov/lov_io.c
lustre/tests/sanity-pfl.sh