Whamcloud - gitweb
LU-1198 idl: move FID VER to DLM resource name[1]
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 8 Mar 2012 07:29:09 +0000 (15:29 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 12 Mar 2012 22:52:30 +0000 (18:52 -0400)
commit4f91d5161d005eed6ff7a9fe6abea99690f4bcb7
treeb8fd886c05c32cc72a2d65191d6b95ca1abdc2eb
parent30fd56b12ec22b3e19298c1f7e7c5f54551c015b
LU-1198 idl: move FID VER to DLM resource name[1]

Until Lustre 1.8.7/2.1.1 the FID version was packed into name[2].

However, this leaves very little room in the LDLM resource name
for other uses.  The upcoming quota code needs to store another
FID into the LDLM resource to allow directory tree quotas, and
managed by the DLM.

The 32-bit VER, which is currently always 0, is moved into the high
bits of name[1] along with the 32-bit OID, to avoid consuming the
name[2] field.  Since future use of the FID version (including
snapshots, pools, etc) will need changes on the client side anyway,
there will never be non-zero VER on an existing client.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If1e500cfb277dfc25bc056bb0c5763e48e7dccdf
Reviewed-on: http://review.whamcloud.com/2271
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_fid.h
lustre/ldlm/ldlm_resource.c
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c