b9e91d2a8e41a43d7ebb7d7eed807a7d8de9b329 added fd==-1 checks to the
lseek() path to handle "stat opens". Current reply.c and
smb2_ioctl_filesys.c callers do not invoke SMB_VFS_LSEEK() with
stat-open fsp structs, so the fd==-1 checks can be removed from the
VFS.
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
off_t result = 0;
DBG_DEBUG("[CEPH] cephwrap_lseek\n");
- /* Cope with 'stat' file opens. */
- if (fsp->fh->fd != -1) {
- result = ceph_lseek(handle->data, fsp->fh->fd, offset, whence);
- }
+ result = ceph_lseek(handle->data, fsp->fh->fd, offset, whence);
WRAP_RETURN(result);
}
START_PROFILE(syscall_lseek);
- /* Cope with 'stat' file opens. */
- if (fsp->fh->fd != -1)
- result = lseek(fsp->fh->fd, offset, whence);
-
+ result = lseek(fsp->fh->fd, offset, whence);
/*
* We want to maintain the fiction that we can seek
* on a fifo for file system purposes. This allows