diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-10-23 13:02:01 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-26 07:09:12 -0700 |
commit | 106a651826eeaacf9d0b40fe6d088d6bdc997675 (patch) | |
tree | dd2340ec387ae0caa22a9ab71ce45b72bf1de447 /libglusterfsclient/src | |
parent | 7445700d0323cbfac11b0e1367b0052438e38318 (diff) |
booster: seperate out the implementations of readdir and readdir64.
- readdir and readdir64 should not call same procedure booster_readdir
in their implementation, since the layout of dirent structures returned by
libc implementations of readdir and readdir64 is different (readdir returns
struct dirent *, where as readdir64 returns struct dirent64 *).
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 333 (ls on paths not on virtual mounts report wrong directory contents)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=333
Diffstat (limited to 'libglusterfsclient/src')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 2 | ||||
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 0336b45f98c..de4d88fe2fd 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -4141,7 +4141,7 @@ out: } -struct dirent * +void * glusterfs_readdir (glusterfs_dir_t dirfd) { int op_ret = -1; diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h index 448667b8e4c..fbc0206995d 100755 --- a/libglusterfsclient/src/libglusterfsclient.h +++ b/libglusterfsclient/src/libglusterfsclient.h @@ -633,7 +633,7 @@ glusterfs_rmdir (const char *path); * Returns the directory entry on success and NULL pointer on error * with errno set appropriately. */ -struct dirent * +void * glusterfs_readdir (glusterfs_dir_t dirfd); |