diff options
| author | Pranith Kumar K <pranithk@gluster.com> | 2012-09-25 14:54:25 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2012-12-12 00:17:23 -0500 | 
| commit | 823e6698732a5fdffe66a3bbb8c29e80a65eb31e (patch) | |
| tree | 73fa6511c6d224ac0252a30d5c5c26fa3ed4e265 /xlators/protocol/client/src/client.h | |
| parent | 187bf4117117904d9a15fb386a6cff4ca6f89fbe (diff) | |
protocol/client: Remember the gfid of opened fd
This is needed when the fresh lookup triggers self-heal, gfid
won't be present in inode yet. Similar situation happens with
Rebalance as it does not perform inode_link.
Added similar fix for re-opendir.
Removed inode from fdctx and removed some duplication of code.
Change-Id: I87679df7171bc6a25c4396af3a3fc04534a65c9c
BUG: 859387
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/1581
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/protocol/client/src/client.h')
| -rw-r--r-- | xlators/protocol/client/src/client.h | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h index 64066dd0add..ac999db5a16 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -116,9 +116,6 @@ typedef struct _client_fd_ctx {                                              fd's position in the saved_fds list.                                          */          int64_t           remote_fd; -        inode_t          *inode; -        uint64_t          ino; -        uint64_t          gen;          char              is_dir;          char              released;          int32_t           flags; @@ -126,6 +123,7 @@ typedef struct _client_fd_ctx {          fd_lk_ctx_t      *lk_ctx;          pthread_mutex_t   mutex;          lk_heal_state_t   lk_heal_state; +        uuid_t            gfid;          struct list_head  lock_list;     /* List of all granted locks on this fd */  } clnt_fd_ctx_t;  | 
