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>
Fri, 16 Mar 2012 01:43:32 +0000 (21:43 -0400)
commitcbb4fad7566a09f54c129d48fb1e328a5941564d
tree7532c2565b106939c7419ec0ed35352658b1a2d2
parent9144ada62141450e796c8aab29459fa774728b28
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: If1e500cfb277dfc25bc056bb0c5763e48e7dcab0
Reviewed-on: http://review.whamcloud.com/2288
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.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