summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-handles.h
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2015-04-14 13:08:34 +0530
committerNiels de Vos <ndevos@redhat.com>2015-04-19 01:06:24 -0700
commitb464723a48c2e35e7f209c3f909c964b6ba7fb47 (patch)
tree61afef0f098554e48c839da1f812b7f057542b65 /api/src/glfs-handles.h
parentaa87c31d8d7406157af582c7aeafd5ed6a64fd2d (diff)
gfapi: Fix in glfs_h_create_from_handle
While constructing glfs_object from the handle given, incase if inode is found in the inode table, we need not do "syncop_lookup" unless we need to return the inode attributes. BUG: 1200262 Change-Id: I4682d9e4420a0bcb1b3e807b801ccb3d8de3d2cd Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/10232 Tested-by: NetBSD Build System Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'api/src/glfs-handles.h')
-rw-r--r--api/src/glfs-handles.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/src/glfs-handles.h b/api/src/glfs-handles.h
index 5ab0799423d..17b1defc733 100644
--- a/api/src/glfs-handles.h
+++ b/api/src/glfs-handles.h
@@ -215,6 +215,9 @@ ssize_t glfs_h_extract_handle (struct glfs_object *object,
unsigned char *handle, int len) __THROW
GFAPI_PUBLIC(glfs_h_extract_handle, 3.4.0);
+/* Given a handle, looks up the inode and creates glfs_object.
+ * In addition, if provided 'stat', copies the inode attributes
+ */
struct glfs_object *glfs_h_create_from_handle (struct glfs *fs,
unsigned char *handle, int len,
struct stat *stat) __THROW