Whamcloud - gitweb
LU-10181 mdt: read on open for DoM files 11/23011/53
authorMikhail Pershin <mike.pershin@intel.com>
Thu, 18 Aug 2016 06:26:06 +0000 (09:26 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 9 Aug 2018 18:18:45 +0000 (18:18 +0000)
commit13372d6c243ccfc1a0886469f3c0dc048783ed47
tree90b53f643913fb3c80d716eae90c54074221cffa
parentb724079edc5b66e1046b5760a6bad3045e9a9260
LU-10181 mdt: read on open for DoM files

Read file data upon open and return it in reply. That works
only for file with Data-on-MDT layout and no OST components
initialized. There are three possible cases may occur:
1) file data fits in already allocated reply buffer (~9K)
   and is returned in that buffer in OPEN reply.
2) File fits in the maximum reply buffer (128K) and reply is
   returned with larger size to the client causing resend
   with re-allocated buffer.
3) File doesn't fit in reply buffer but its tail fills page
   partially then that tail is returned. This can be useful
   for an append case

Test-Parameters: mdssizegb=20 testlist=sanity-dom,dom-performance,racer
Change-Id: I5574ce5f74017fc654715e212b71fc3b905bdcae
Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Reviewed-on: https://review.whamcloud.com/23011
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
17 files changed:
lustre/include/lustre_req_layout.h
lustre/include/obd.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/namei.c
lustre/mdc/lproc_mdc.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_locks.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_io.c
lustre/mdt/mdt_lproc.c
lustre/mdt/mdt_open.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/niobuf.c
lustre/tests/sanity.sh