diff options
author | Jeremy Allison <jra@samba.org> | 2000-10-06 03:41:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-10-06 03:41:48 +0000 |
commit | 14a8906e8ca491f3c7aa413daab1eaff29dad576 (patch) | |
tree | 5daae88c429df58cc9cac18dfddd42fe8184ce98 /source3/smbd | |
parent | 636f146abf0a75cd3b21a57b50627ee149a635ab (diff) | |
download | samba-14a8906e8ca491f3c7aa413daab1eaff29dad576.tar.gz samba-14a8906e8ca491f3c7aa413daab1eaff29dad576.tar.bz2 samba-14a8906e8ca491f3c7aa413daab1eaff29dad576.zip |
Inlined many of the vfs_XXX calls as macros for speed.
Jeremy.
(This used to be commit 0811d080abd374f47c7c3c8a1ef007e443e5b79c)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/vfs.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 91172401bc..6b1b5ed22d 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -255,24 +255,6 @@ BOOL vfs_init_custom(connection_struct *conn) #endif /******************************************************************* - vfs stat wrapper that calls dos_to_unix. -********************************************************************/ - -int vfs_stat(connection_struct *conn, char *fname, SMB_STRUCT_STAT *st) -{ - return(conn->vfs_ops.stat(conn, dos_to_unix(fname,False),st)); -} - -/******************************************************************* - vfs fstat wrapper that calls dos_to_unix. -********************************************************************/ - -int vfs_fstat(files_struct *fsp, int fd, SMB_STRUCT_STAT *st) -{ - return(fsp->conn->vfs_ops.fstat(fsp,fd,st)); -} - -/******************************************************************* Check if directory exists. ********************************************************************/ @@ -319,51 +301,6 @@ int vfs_mkdir(connection_struct *conn, char *fname, mode_t mode) } /******************************************************************* - vfs rmdir wrapper that calls dos_to_unix. -********************************************************************/ - -int vfs_rmdir(connection_struct *conn, char *fname) -{ - return(conn->vfs_ops.rmdir(conn,dos_to_unix(fname,False))); -} - -/******************************************************************* - vfs Unlink wrapper that calls dos_to_unix. -********************************************************************/ - -int vfs_unlink(connection_struct *conn, char *fname) -{ - return(conn->vfs_ops.unlink(conn,dos_to_unix(fname,False))); -} - -/******************************************************************* - vfs chmod wrapper that calls dos_to_unix. -********************************************************************/ - -int vfs_chmod(connection_struct *conn, char *fname,mode_t mode) -{ - return(conn->vfs_ops.chmod(conn,dos_to_unix(fname,False), mode)); -} - -/******************************************************************* - vfs chown wrapper that calls dos_to_unix. -********************************************************************/ - -int vfs_chown(connection_struct *conn, char *fname, uid_t uid, gid_t gid) -{ - return(conn->vfs_ops.chown(conn,dos_to_unix(fname,False), uid, gid)); -} - -/******************************************************************* - A wrapper for vfs_chdir(). -********************************************************************/ - -int vfs_chdir(connection_struct *conn, char *fname) -{ - return(conn->vfs_ops.chdir(conn,dos_to_unix(fname,False))); -} - -/******************************************************************* vfs getwd wrapper that calls dos_to_unix. ********************************************************************/ |