Whamcloud - gitweb
LU-10438 flr: layout truncate compatibility 86/30786/8
authorBobi Jam <bobijam.xu@intel.com>
Wed, 10 Jan 2018 04:18:29 +0000 (12:18 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 Feb 2018 00:51:06 +0000 (00:51 +0000)
commit795ca68f13606921f6cd78b9c77fd2c5d8ca724d
treee56d662eb7379f30d6080e5541650f997f78e2b7
parentfa15e5347c2eccd432924e57440829606c7339f6
LU-10438 flr: layout truncate compatibility

In PFL design, client issues [0, size) intent to MDS to instantiate
objects in this extent. While in FLR design, the intent serves two
purposes: 1) make objects across [size, EOF) on other mirrors stale,
and 2) instantiate objects in the chosen write mirror. And original
FLR chose to use [size, EOF) as the extent of truncate write intent
request.

This patch reverts the choice, and still uses [0, size) as the
truncate write intent extent.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I12d90320ba704f01457670f864d78fe764233000
Reviewed-on: https://review.whamcloud.com/30786
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_object.c
lustre/lov/lov_io.c