diff options
Diffstat (limited to 'source3/modules/vfs_glusterfs.c')
-rw-r--r-- | source3/modules/vfs_glusterfs.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 918b06b5f8e..059aeb42ab5 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -630,7 +630,6 @@ static int vfs_gluster_open(struct vfs_handle_struct *handle, { glfs_fd_t *glfd; glfs_fd_t **p_tmp; - int fakefd[2]; START_PROFILE(syscall_open); @@ -660,15 +659,8 @@ static int vfs_gluster_open(struct vfs_handle_struct *handle, *p_tmp = glfd; END_PROFILE(syscall_open); - - if (pipe(fakefd) == -1) { - DBG_ERR("pipe failed: %s\n", strerror(errno)); - return -1; - } - - close(fakefd[1]); - - return fakefd[0]; + /* An arbitrary value for error reporting, so you know its us. */ + return 13371337; } static int vfs_gluster_close(struct vfs_handle_struct *handle, @@ -686,8 +678,6 @@ static int vfs_gluster_close(struct vfs_handle_struct *handle, return -1; } - close(fsp->fh->fd); - VFS_REMOVE_FSP_EXTENSION(handle, fsp); ret = glfs_close(glfd); |