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)
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>

No differences found