From 7d5e6eead2e540132de30a6532a60cb0001b438b Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 2 Nov 2010 15:17:22 -0400 Subject: [PATCH] storing backpointer to nfs41_root from nfs41_client --- daemon/namespace.c | 1 + daemon/nfs41.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/daemon/namespace.c b/daemon/namespace.c index 2e672ef..414cb69 100644 --- a/daemon/namespace.c +++ b/daemon/namespace.c @@ -295,6 +295,7 @@ static int root_client_create( eprintf("nfs41_client_create() failed with %d\n", status); goto out; } + client->root = root; rpc->client = client; /* create session (and client takes ownership) */ diff --git a/daemon/nfs41.h b/daemon/nfs41.h index b18891d..1b628b8 100644 --- a/daemon/nfs41.h +++ b/daemon/nfs41.h @@ -31,6 +31,7 @@ struct __nfs41_session; struct __nfs41_client; struct __rpc_client; +struct __nfs41_root; typedef struct __nfs41_superblock { nfs41_fsid fsid; @@ -123,6 +124,7 @@ typedef struct __nfs41_client { struct pnfs_file_device_list *devices; struct list_entry root_entry; /* position in nfs41_root.clients */ HANDLE cond; + struct __nfs41_root *root; bool_t in_recovery; } nfs41_client;