diff options
| author | Soumya Koduri <skoduri@redhat.com> | 2015-04-14 13:08:34 +0530 |
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-02 02:29:44 -0700 |
| commit | 27eabb02adc0d5aec58b3a19ab2b2128b7633c3a (patch) | |
| tree | af5d6a42d5a8d69f24c49d9b2e60119e2ce680f1 /api/src/glfs-handles.h | |
| parent | e1f675cfd0f5b601c332b17333149d6c760bfd89 (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: 1217711
Change-Id: Iaf296a80f721f9fca38d8023b83d37e6e5d970a5
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-on: http://review.gluster.org/10232
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/10485
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src/glfs-handles.h')
| -rw-r--r-- | api/src/glfs-handles.h | 3 |
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 |
