diff options
author | Anand Avati <avati@redhat.com> | 2013-04-14 02:58:34 -0700 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-06-08 14:38:33 -0700 |
commit | f44ada6cd9bcc5ab98ca66bedde4fe23dd1c3f05 (patch) | |
tree | b23b9ea26670e83ba0d04885616fab6f1f6db944 /api/src/glfs.h | |
parent | b7ac8e415961c9e203ed3f56b4115b7eb215ab94 (diff) |
gfapi: support for chdir() and family
Add support for chdir, fchdir, getcwd, realpath equivalents in
GFAPI. These are required for the Samba VFS plugin.
Change-Id: I91d2db9146994403c98961c489c7640c51d5add2
BUG: 953694
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/5151
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src/glfs.h')
-rw-r--r-- | api/src/glfs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/src/glfs.h b/api/src/glfs.h index e19c1cd2591..7ff31dd62e3 100644 --- a/api/src/glfs.h +++ b/api/src/glfs.h @@ -442,6 +442,14 @@ int glfs_lremovexattr (glfs_t *fs, const char *path, const char *name); int glfs_fremovexattr (glfs_fd_t *fd, const char *name); +char *glfs_getcwd (glfs_t *fs, char *buf, size_t size); + +int glfs_chdir (glfs_t *fs, const char *path); + +int glfs_fchdir (glfs_fd_t *fd); + +char *glfs_realpath (glfs_t *fs, const char *path, char *resolved_path); + __END_DECLS #endif /* !_GLFS_H */ |