Whamcloud - gitweb
LU-1198 idl: move FID VER to DLM resource name[1]
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 8 Mar 2012 14:22:59 +0000 (22:22 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 13 Mar 2012 09:14:14 +0000 (05:14 -0400)
commitef8bd11416bae8c03a65682f3a10a4da39922b45
tree3284517dfb35b5837cc43dec66d5c027ef832754
parentba8f5e61d7d0c69a9264764a87cfa85e0655bf6d
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: If1e500cfb277dfc25bc056bb0c5763e48e7d500c
Reviewed-on: http://review.whamcloud.com/2275
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/include/lustre/lustre_idl.h
lustre/mdc/mdc_fid.c