Whamcloud - gitweb
LU-11595 mdt: fix read-on-open for big PAGE_SIZE 06/33606/7
authorMikhail Pershin <mpershin@whamcloud.com>
Wed, 7 Nov 2018 13:31:57 +0000 (16:31 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 27 Nov 2018 04:57:19 +0000 (04:57 +0000)
commit4d7b022e373d265f4f3b9d90af44cddd0e65f9ae
tree4a0e5188e0b6776480a0c321d53913c35175957e
parent04c172b686763be0d42eb4c36532d5795166eb7c
LU-11595 mdt: fix read-on-open for big PAGE_SIZE

Client PAGE_SIZE can be larger than server one so data returned
from server along with OPEN can be misaligned on client.

Patch replaces assertion on client with check and graceful exit,
changes MDC_DOM_DEF_INLINE_REPSIZE to be PAGE_SIZE at least and
updates mdt_dom_read_on_open() to return file tail for maximum
possible page size that can fit into reply.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Ic2c54b95c814d3b6df3b527527cac08488060651
Reviewed-on: https://review.whamcloud.com/33606
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/mdc/mdc_internal.h
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_io.c