deleg: use delegations to satisfy opens locally

added delegation.c and .h

nfs41_client stores a list of nfs41_delegation_state
new function nfs41_delegate_open() to look for a compatible delegation before calling nfs41_open()
if nfs41_open() is granted a delegation, call nfs41_delegation_granted() to register it with the client
client calls nfs41_client_delegation_free() on unmount to free list of delegations

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2011-06-09 15:01:16 -04:00 committed by unknown
parent 0c874a66ba
commit 0bee545e91
7 changed files with 345 additions and 16 deletions

View file

@ -195,6 +195,7 @@
<ClCompile Include="..\daemon\callback_xdr.c" />
<ClCompile Include="..\daemon\callback_server.c" />
<ClCompile Include="..\daemon\daemon_debug.c" />
<ClCompile Include="..\daemon\delegation.c" />
<ClCompile Include="..\daemon\getattr.c" />
<ClCompile Include="..\daemon\idmap.c" />
<ClCompile Include="..\daemon\lock.c" />
@ -227,6 +228,7 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\daemon\daemon_debug.h" />
<ClInclude Include="..\daemon\delegation.h" />
<ClInclude Include="..\daemon\from_kernel.h" />
<ClInclude Include="..\daemon\idmap.h" />
<ClInclude Include="..\daemon\list.h" />