Whamcloud - gitweb
LU-376 Positive LL_DIR_END_OFF to indicate the tail of dir hash/offset
authornasf <yong.fan@whamcloud.com>
Thu, 2 Jun 2011 06:44:32 +0000 (14:44 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 7 Jun 2011 19:14:28 +0000 (12:14 -0700)
commitdea1dfafba827572dc1be042de4332e8962f1c14
tree05f10f7c198fb6c779ec70b1ede01cd36fe10950
parent754927ef69d3c0ae9019b8922765967265025d42
LU-376 Positive LL_DIR_END_OFF to indicate the tail of dir hash/offset

1) Keep 'MDS_DIR_END_OFF' unchanged (0xfffffffffffffffeULL) to simplify
   dir hash/offset related interoperability issues.
2) Introduce positive "LL_DIR_END_OFF" (0x7fffffffffffffffULL) on client
   to indicate the tail of dir hash/offset for up layer callers, like
   llseek(), readdir(), and so on.
3) Support new 2.x client to talk with old 2.0 server with 32bit hash.

Change-Id: I74c148482f91ed91dfffd608f98971566f1257ad
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/886
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
lustre/include/lclient.h
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_lite.h
lustre/lclient/lcommon_cl.c
lustre/liblustre/dir.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/statahead.c
lustre/lmv/lmv_obd.c
lustre/mdd/mdd_object.c
lustre/ptlrpc/wiretest.c
lustre/utils/wiretest.c