Whamcloud - gitweb
LU-1842 protocol: add support for OBD_IDX_READ
authorJohann Lombardi <johann@whamcloud.com>
Tue, 11 Sep 2012 22:04:00 +0000 (00:04 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Sep 2012 04:00:34 +0000 (00:00 -0400)
commitd00aa67e61944a59accfb43d277ad4dd8d85f16d
treecbbf471dfd1a33064149eac5b7f081d7aa701268
parente1a430be4a4a08e39b945a35a04c8286353fb6fc
LU-1842 protocol: add support for OBD_IDX_READ

This patch defines a new RPC format (namely OBD_IDX_READ) which
allows to read the content of an index file via a bulk transfer.
It is simlilar to MDS_READPAGE except that it is not tied to a
specific key/record format (readdir relies on lu_dirent/lu_dirpage).
Like readdir, key/record pairs are stored in a container of a
fixed size (i.e. 4KB) regardless of the client & server page size.

Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Change-Id: I34071ca05a3bd4e6c01bfe4fc533ab79bdd98b3c
Reviewed-on: http://review.whamcloud.com/3942
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
15 files changed:
lustre/include/dt_object.h
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_req_layout.h
lustre/include/obd_support.h
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/obdclass/dt_object.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/sec.c
lustre/ptlrpc/wiretest.c
lustre/utils/req-layout.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c