diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2012-11-12 11:48:48 -0500 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-11-14 13:13:04 -0500 |
commit | 49720aef1da73ec460c11be871d7e0cdd8f535d4 (patch) | |
tree | d4b924162f585bc9fbae67bc782947707ae73398 /xlators | |
parent | 23b959642a7cddd02bd1bf867d504ec95764efcb (diff) |
NFS is picking up geo-rep's already open (read-only) file descriptor
Add anonymous member to fd_t and use it instead of over-loading pid for
geo-rep and self heal
Change-Id: I53a3becb6ee72498bab889654547ca7422bc0a59
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
BUG: 874272
Reviewed-on: https://code.engineering.redhat.com/gerrit/1531
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index f4dcc70a2ab..585b791b046 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -994,7 +994,7 @@ __posix_fd_ctx_get (fd_t *fd, xlator_t *this, struct posix_fd **pfd_p) goto out; } - if (fd->pid != -1) + if (!fd_is_anonymous(fd)) /* anonymous fd */ goto out; |