summaryrefslogtreecommitdiff
path: root/source3/locking/locking.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-04 05:32:42 +0000
committerTim Potter <tpot@samba.org>1999-04-04 05:32:42 +0000
commit9d4b57069cc5ce46c33079ed5ca3dfa3f58118e1 (patch)
tree4baeee06ad41ffd14ba4d06bca9c90964118d8b4 /source3/locking/locking.c
parent9e071506a1afa1655c3587d4bafa02bdc01932cd (diff)
downloadsamba-9d4b57069cc5ce46c33079ed5ca3dfa3f58118e1.tar.gz
samba-9d4b57069cc5ce46c33079ed5ca3dfa3f58118e1.tar.bz2
samba-9d4b57069cc5ce46c33079ed5ca3dfa3f58118e1.zip
Use VFS operations for file I/O.
(This used to be commit 20bfa71c951a6e6018aafbd43946d1e0669feacb)
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r--source3/locking/locking.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 84c9c442b5..fdc39d0040 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -87,7 +87,8 @@ BOOL is_locked(files_struct *fsp,connection_struct *conn,
* fd. So we don't need to use map_lock_type here.
*/
- return(fcntl_lock(fsp->fd_ptr->fd,SMB_F_GETLK,offset,count,lock_type));
+ return(conn->vfs_ops.lock(fsp->fd_ptr->fd,SMB_F_GETLK,offset,count,
+ lock_type));
}
@@ -113,8 +114,8 @@ BOOL do_lock(files_struct *fsp,connection_struct *conn,
lock_type, (double)offset, (double)count, fsp->fsp_name ));
if (OPEN_FSP(fsp) && fsp->can_lock && (fsp->conn == conn))
- ok = fcntl_lock(fsp->fd_ptr->fd,SMB_F_SETLK,offset,count,
- map_lock_type(fsp,lock_type));
+ ok = conn->vfs_ops.lock(fsp->fd_ptr->fd,SMB_F_SETLK,offset,count,
+ map_lock_type(fsp,lock_type));
if (!ok) {
*eclass = ERRDOS;
@@ -140,7 +141,7 @@ BOOL do_unlock(files_struct *fsp,connection_struct *conn,
(double)offset, (double)count, fsp->fsp_name ));
if (OPEN_FSP(fsp) && fsp->can_lock && (fsp->conn == conn))
- ok = fcntl_lock(fsp->fd_ptr->fd,SMB_F_SETLK,offset,count,F_UNLCK);
+ ok = conn->vfs_ops.lock(fsp->fd_ptr->fd,SMB_F_SETLK,offset,count,F_UNLCK);
if (!ok) {
*eclass = ERRDOS;