mirror of
https://github.com/samba-team/samba.git
synced 2025-11-30 20:23:49 +03:00
Restructuring of vfs layer to include a "this" pointer - can be an fsp or
a conn struct depending on the call. We need this to have a clean NT ACL call interface. This will break any existing VFS libraries (that's why this is pre-release code). Andrew gets credit for this one :-) :-). In addition - added Herb's WITH_PROFILE changes - Herb - please examine the changes I've made to the smbd/reply.c code you added. The original code was very ugly and I have replaced it with a START_PROFILE(x)/END_PROFILE(x) pair using the preprocessor. Please check this compiles ok with the --with-profile switch. Jeremy.
This commit is contained in:
@@ -3833,44 +3833,43 @@ BOOL set_nt_acl(files_struct *fsp, uint32 security_info_sent, SEC_DESC *psd);
|
||||
|
||||
/*The following definitions come from smbd/vfs-wrap.c */
|
||||
|
||||
int vfswrap_dummy_connect(struct vfs_connection_struct *conn, char *service,
|
||||
char *user);
|
||||
int vfswrap_dummy_connect(connection_struct *conn, char *service, char *user);
|
||||
void vfswrap_dummy_disconnect(void);
|
||||
SMB_BIG_UINT vfswrap_disk_free(char *path, BOOL small_query, SMB_BIG_UINT *bsize,
|
||||
SMB_BIG_UINT vfswrap_disk_free(connection_struct *conn, char *path, BOOL small_query, SMB_BIG_UINT *bsize,
|
||||
SMB_BIG_UINT *dfree, SMB_BIG_UINT *dsize);
|
||||
DIR *vfswrap_opendir(char *fname);
|
||||
struct dirent *vfswrap_readdir(DIR *dirp);
|
||||
int vfswrap_mkdir(char *path, mode_t mode);
|
||||
int vfswrap_rmdir(char *path);
|
||||
int vfswrap_closedir(DIR *dirp);
|
||||
int vfswrap_open(char *fname, int flags, mode_t mode);
|
||||
int vfswrap_close(int fd);
|
||||
ssize_t vfswrap_read(int fd, char *data, size_t n);
|
||||
ssize_t vfswrap_write(int fd, char *data, size_t n);
|
||||
SMB_OFF_T vfswrap_lseek(int filedes, SMB_OFF_T offset, int whence);
|
||||
int vfswrap_rename(char *old, char *new);
|
||||
int vfswrap_fsync(int fd);
|
||||
int vfswrap_stat(char *fname, SMB_STRUCT_STAT *sbuf);
|
||||
int vfswrap_fstat(int fd, SMB_STRUCT_STAT *sbuf);
|
||||
int vfswrap_lstat(char *path,
|
||||
SMB_STRUCT_STAT *sbuf);
|
||||
int vfswrap_unlink(char *path);
|
||||
int vfswrap_chmod(char *path, mode_t mode);
|
||||
int vfswrap_chown(char *path, uid_t uid, gid_t gid);
|
||||
int vfswrap_chdir(char *path);
|
||||
char *vfswrap_getwd(char *path);
|
||||
int vfswrap_utime(char *path, struct utimbuf *times);
|
||||
int vfswrap_ftruncate(int fd, SMB_OFF_T offset);
|
||||
BOOL vfswrap_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
|
||||
DIR *vfswrap_opendir(connection_struct *conn, char *fname);
|
||||
struct dirent *vfswrap_readdir(connection_struct *conn, DIR *dirp);
|
||||
int vfswrap_mkdir(connection_struct *conn, char *path, mode_t mode);
|
||||
int vfswrap_rmdir(connection_struct *conn, char *path);
|
||||
int vfswrap_closedir(connection_struct *conn, DIR *dirp);
|
||||
int vfswrap_open(connection_struct *conn, char *fname, int flags, mode_t mode);
|
||||
int vfswrap_close(files_struct *fsp, int fd);
|
||||
ssize_t vfswrap_read(files_struct *fsp, int fd, char *data, size_t n);
|
||||
ssize_t vfswrap_write(files_struct *fsp, int fd, char *data, size_t n);
|
||||
SMB_OFF_T vfswrap_lseek(files_struct *fsp, int filedes, SMB_OFF_T offset, int whence);
|
||||
int vfswrap_rename(connection_struct *conn, char *old, char *new);
|
||||
int vfswrap_fsync(files_struct *fsp, int fd);
|
||||
int vfswrap_stat(connection_struct *conn, char *fname, SMB_STRUCT_STAT *sbuf);
|
||||
int vfswrap_fstat(files_struct *fsp, int fd, SMB_STRUCT_STAT *sbuf);
|
||||
int vfswrap_lstat(connection_struct *conn, char *path, SMB_STRUCT_STAT *sbuf);
|
||||
int vfswrap_unlink(connection_struct *conn, char *path);
|
||||
int vfswrap_chmod(connection_struct *conn, char *path, mode_t mode);
|
||||
int vfswrap_chown(connection_struct *conn, char *path, uid_t uid, gid_t gid);
|
||||
int vfswrap_chdir(connection_struct *conn, char *path);
|
||||
char *vfswrap_getwd(connection_struct *conn, char *path);
|
||||
int vfswrap_utime(connection_struct *conn, char *path, struct utimbuf *times);
|
||||
int vfswrap_ftruncate(files_struct *fsp, int fd, SMB_OFF_T offset);
|
||||
BOOL vfswrap_lock(files_struct *fsp, int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
|
||||
|
||||
/*The following definitions come from smbd/vfs.c */
|
||||
|
||||
int vfs_init_default(connection_struct *conn);
|
||||
BOOL vfs_init_custom(connection_struct *conn);
|
||||
int vfs_stat(connection_struct *conn, char *fname, SMB_STRUCT_STAT *st);
|
||||
int vfs_fstat(connection_struct *conn, int fd, SMB_STRUCT_STAT *st);
|
||||
int vfs_fstat(files_struct *fsp, int fd, SMB_STRUCT_STAT *st);
|
||||
BOOL vfs_directory_exist(connection_struct *conn, char *dname, SMB_STRUCT_STAT *st);
|
||||
int vfs_mkdir(connection_struct *conn, char *fname, mode_t mode);
|
||||
int vfs_rmdir(connection_struct *conn, char *fname);
|
||||
int vfs_unlink(connection_struct *conn, char *fname);
|
||||
int vfs_chmod(connection_struct *conn, char *fname,mode_t mode);
|
||||
int vfs_chown(connection_struct *conn, char *fname, uid_t uid, gid_t gid);
|
||||
|
||||
Reference in New Issue
Block a user