From d5088c056d5aee1bda2997ad5835379465fed3a1 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 7 Jun 2016 21:27:10 +0530 Subject: storage/posix: Give correct errno for anon-fd operations Change-Id: Ia9e61d3baa6881eb7dc03dd8ddb6bfdde5a01958 BUG: 1343906 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/14669 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra G --- xlators/storage/posix/src/posix.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/storage/posix/src/posix.h') diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 12ed884323c..87f91e57747 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -243,7 +243,8 @@ int posix_gfid_heal (xlator_t *this, const char *path, loc_t *loc, dict_t *xattr int posix_entry_create_xattr_set (xlator_t *this, const char *path, dict_t *dict); -int posix_fd_ctx_get (fd_t *fd, xlator_t *this, struct posix_fd **pfd); +int posix_fd_ctx_get (fd_t *fd, xlator_t *this, struct posix_fd **pfd, + int *op_errno); void posix_fill_ino_from_gfid (xlator_t *this, struct iatt *buf); gf_boolean_t posix_special_xattr (char **pattern, char *key); -- cgit