diff options
author | Anand Avati <avati@redhat.com> | 2013-04-14 02:58:34 -0700 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-04-19 04:41:35 -0700 |
commit | a1db18cf7a6cde96f2e5b920ffbbf88e72a21fd4 (patch) | |
tree | 0c0ee87231c345b7619bf97c1bdc13eaafa6b83a /api/src/glfs.h | |
parent | 1fc9b98a4eb6eda8db30940a8bb07d206e2fa049 (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/4853
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 */ |