vfs 570 source3/include/smb.h struct vfs_ops vfs; /* Filesystem operations */ vfs 30 source3/include/vfs_macros.h #define SMB_VFS_CONNECT(conn, service, user) ((conn)->vfs.ops.connect_fn((conn)->vfs.handles.connect_hnd, (service), (user))) vfs 31 source3/include/vfs_macros.h #define SMB_VFS_DISCONNECT(conn) ((conn)->vfs.ops.disconnect((conn)->vfs.handles.disconnect)) vfs 32 source3/include/vfs_macros.h #define SMB_VFS_DISK_FREE(conn, path, small_query, bsize, dfree ,dsize) ((conn)->vfs.ops.disk_free((conn)->vfs.handles.disk_free, (path), (small_query), (bsize), (dfree), (dsize))) vfs 33 source3/include/vfs_macros.h #define SMB_VFS_GET_QUOTA(conn, qtype, id, qt) ((conn)->vfs.ops.get_quota((conn)->vfs.handles.get_quota, (qtype), (id), (qt))) vfs 34 source3/include/vfs_macros.h #define SMB_VFS_SET_QUOTA(conn, qtype, id, qt) ((conn)->vfs.ops.set_quota((conn)->vfs.handles.set_quota, (qtype), (id), (qt))) vfs 35 source3/include/vfs_macros.h #define SMB_VFS_GET_SHADOW_COPY_DATA(fsp,shadow_copy_data,labels) ((fsp)->conn->vfs.ops.get_shadow_copy_data((fsp)->conn->vfs.handles.get_shadow_copy_data,(fsp),(shadow_copy_data),(labels))) vfs 36 source3/include/vfs_macros.h #define SMB_VFS_STATVFS(conn, path, statbuf) ((conn)->vfs.ops.statvfs((conn)->vfs.handles.statvfs, (path), (statbuf))) vfs 37 source3/include/vfs_macros.h #define SMB_VFS_FS_CAPABILITIES(conn) ((conn)->vfs.ops.fs_capabilities((conn)->vfs.handles.fs_capabilities)) vfs 40 source3/include/vfs_macros.h #define SMB_VFS_OPENDIR(conn, fname, mask, attr) ((conn)->vfs.ops.opendir((conn)->vfs.handles.opendir, (fname), (mask), (attr))) vfs 41 source3/include/vfs_macros.h #define SMB_VFS_READDIR(conn, dirp, sbuf) ((conn)->vfs.ops.readdir((conn)->vfs.handles.readdir, (dirp), (sbuf))) vfs 42 source3/include/vfs_macros.h #define SMB_VFS_SEEKDIR(conn, dirp, offset) ((conn)->vfs.ops.seekdir((conn)->vfs.handles.seekdir, (dirp), (offset))) vfs 43 source3/include/vfs_macros.h #define SMB_VFS_TELLDIR(conn, dirp) ((conn)->vfs.ops.telldir((conn)->vfs.handles.telldir, (dirp))) vfs 44 source3/include/vfs_macros.h #define SMB_VFS_REWINDDIR(conn, dirp) ((conn)->vfs.ops.rewind_dir((conn)->vfs.handles.rewind_dir, (dirp))) vfs 45 source3/include/vfs_macros.h #define SMB_VFS_MKDIR(conn, path, mode) ((conn)->vfs.ops.mkdir((conn)->vfs.handles.mkdir,(path), (mode))) vfs 46 source3/include/vfs_macros.h #define SMB_VFS_RMDIR(conn, path) ((conn)->vfs.ops.rmdir((conn)->vfs.handles.rmdir, (path))) vfs 47 source3/include/vfs_macros.h #define SMB_VFS_CLOSEDIR(conn, dir) ((conn)->vfs.ops.closedir((conn)->vfs.handles.closedir, dir)) vfs 48 source3/include/vfs_macros.h #define SMB_VFS_INIT_SEARCH_OP(conn, dirp) ((conn)->vfs.ops.init_search_op((conn)->vfs.handles.init_search_op, (dirp))) vfs 51 source3/include/vfs_macros.h #define SMB_VFS_OPEN(conn, fname, fsp, flags, mode) (((conn)->vfs.ops.open)((conn)->vfs.handles.open, (fname), (fsp), (flags), (mode))) vfs 52 source3/include/vfs_macros.h #define SMB_VFS_CREATE_FILE(conn, req, root_dir_fid, fname, create_file_flags, access_mask, share_access, create_disposition, create_options, file_attributes, oplock_request, allocation_size, sd, ea_list, result, pinfo, psbuf) (((conn)->vfs.ops.create_file)((conn)->vfs.handles.create_file, (req), (root_dir_fid), (fname), (create_file_flags), (access_mask), (share_access), (create_disposition), (create_options), (file_attributes), (oplock_request), (allocation_size), (sd), (ea_list), (result), (pinfo), (psbuf))) vfs 53 source3/include/vfs_macros.h #define SMB_VFS_CLOSE(fsp) ((fsp)->conn->vfs.ops.close_fn((fsp)->conn->vfs.handles.close_hnd, (fsp))) vfs 54 source3/include/vfs_macros.h #define SMB_VFS_READ(fsp, data, n) ((fsp)->conn->vfs.ops.vfs_read((fsp)->conn->vfs.handles.vfs_read, (fsp), (data), (n))) vfs 55 source3/include/vfs_macros.h #define SMB_VFS_PREAD(fsp, data, n, off) ((fsp)->conn->vfs.ops.pread((fsp)->conn->vfs.handles.pread, (fsp), (data), (n), (off))) vfs 56 source3/include/vfs_macros.h #define SMB_VFS_WRITE(fsp, data, n) ((fsp)->conn->vfs.ops.write((fsp)->conn->vfs.handles.write, (fsp), (data), (n))) vfs 57 source3/include/vfs_macros.h #define SMB_VFS_PWRITE(fsp, data, n, off) ((fsp)->conn->vfs.ops.pwrite((fsp)->conn->vfs.handles.pwrite, (fsp), (data), (n), (off))) vfs 58 source3/include/vfs_macros.h #define SMB_VFS_LSEEK(fsp, offset, whence) ((fsp)->conn->vfs.ops.lseek((fsp)->conn->vfs.handles.lseek, (fsp), (offset), (whence))) vfs 59 source3/include/vfs_macros.h #define SMB_VFS_SENDFILE(tofd, fromfsp, header, offset, count) ((fromfsp)->conn->vfs.ops.sendfile((fromfsp)->conn->vfs.handles.sendfile, (tofd), (fromfsp), (header), (offset), (count))) vfs 60 source3/include/vfs_macros.h #define SMB_VFS_RECVFILE(fromfd, tofsp, offset, count) ((tofsp)->conn->vfs.ops.recvfile((tofsp)->conn->vfs.handles.recvfile, (fromfd), (tofsp), (offset), (count))) vfs 61 source3/include/vfs_macros.h #define SMB_VFS_RENAME(conn, old, new) ((conn)->vfs.ops.rename((conn)->vfs.handles.rename, (old), (new))) vfs 62 source3/include/vfs_macros.h #define SMB_VFS_FSYNC(fsp) ((fsp)->conn->vfs.ops.fsync((fsp)->conn->vfs.handles.fsync, (fsp))) vfs 63 source3/include/vfs_macros.h #define SMB_VFS_STAT(conn, fname, sbuf) ((conn)->vfs.ops.stat((conn)->vfs.handles.stat, (fname), (sbuf))) vfs 64 source3/include/vfs_macros.h #define SMB_VFS_FSTAT(fsp, sbuf) ((fsp)->conn->vfs.ops.fstat((fsp)->conn->vfs.handles.fstat, (fsp), (sbuf))) vfs 65 source3/include/vfs_macros.h #define SMB_VFS_LSTAT(conn, path, sbuf) ((conn)->vfs.ops.lstat((conn)->vfs.handles.lstat, (path), (sbuf))) vfs 66 source3/include/vfs_macros.h #define SMB_VFS_GET_ALLOC_SIZE(conn, fsp, sbuf) ((conn)->vfs.ops.get_alloc_size((conn)->vfs.handles.get_alloc_size, (fsp), (sbuf))) vfs 67 source3/include/vfs_macros.h #define SMB_VFS_UNLINK(conn, path) ((conn)->vfs.ops.unlink((conn)->vfs.handles.unlink, (path))) vfs 68 source3/include/vfs_macros.h #define SMB_VFS_CHMOD(conn, path, mode) ((conn)->vfs.ops.chmod((conn)->vfs.handles.chmod, (path), (mode))) vfs 69 source3/include/vfs_macros.h #define SMB_VFS_FCHMOD(fsp, mode) ((fsp)->conn->vfs.ops.fchmod((fsp)->conn->vfs.handles.fchmod, (fsp), (mode))) vfs 70 source3/include/vfs_macros.h #define SMB_VFS_CHOWN(conn, path, uid, gid) ((conn)->vfs.ops.chown((conn)->vfs.handles.chown, (path), (uid), (gid))) vfs 71 source3/include/vfs_macros.h #define SMB_VFS_FCHOWN(fsp, uid, gid) ((fsp)->conn->vfs.ops.fchown((fsp)->conn->vfs.handles.fchown, (fsp), (uid), (gid))) vfs 72 source3/include/vfs_macros.h #define SMB_VFS_LCHOWN(conn, path, uid, gid) ((conn)->vfs.ops.lchown((conn)->vfs.handles.lchown, (path), (uid), (gid))) vfs 73 source3/include/vfs_macros.h #define SMB_VFS_CHDIR(conn, path) ((conn)->vfs.ops.chdir((conn)->vfs.handles.chdir, (path))) vfs 74 source3/include/vfs_macros.h #define SMB_VFS_GETWD(conn, buf) ((conn)->vfs.ops.getwd((conn)->vfs.handles.getwd, (buf))) vfs 75 source3/include/vfs_macros.h #define SMB_VFS_NTIMES(conn, path, ts) ((conn)->vfs.ops.ntimes((conn)->vfs.handles.ntimes, (path), (ts))) vfs 76 source3/include/vfs_macros.h #define SMB_VFS_FTRUNCATE(fsp, offset) ((fsp)->conn->vfs.ops.ftruncate((fsp)->conn->vfs.handles.ftruncate, (fsp), (offset))) vfs 77 source3/include/vfs_macros.h #define SMB_VFS_LOCK(fsp, op, offset, count, type) ((fsp)->conn->vfs.ops.lock((fsp)->conn->vfs.handles.lock, (fsp), (op), (offset), (count), (type))) vfs 78 source3/include/vfs_macros.h #define SMB_VFS_KERNEL_FLOCK(fsp, share_mode) ((fsp)->conn->vfs.ops.kernel_flock((fsp)->conn->vfs.handles.kernel_flock, (fsp), (share_mode))) vfs 79 source3/include/vfs_macros.h #define SMB_VFS_LINUX_SETLEASE(fsp, leasetype) ((fsp)->conn->vfs.ops.linux_setlease((fsp)->conn->vfs.handles.linux_setlease, (fsp), (leasetype))) vfs 80 source3/include/vfs_macros.h #define SMB_VFS_GETLOCK(fsp, poffset, pcount, ptype, ppid) ((fsp)->conn->vfs.ops.getlock((fsp)->conn->vfs.handles.getlock, (fsp), (poffset), (pcount), (ptype), (ppid))) vfs 81 source3/include/vfs_macros.h #define SMB_VFS_SYMLINK(conn, oldpath, newpath) ((conn)->vfs.ops.symlink((conn)->vfs.handles.symlink, (oldpath), (newpath))) vfs 82 source3/include/vfs_macros.h #define SMB_VFS_READLINK(conn, path, buf, bufsiz) ((conn)->vfs.ops.vfs_readlink((conn)->vfs.handles.vfs_readlink, (path), (buf), (bufsiz))) vfs 83 source3/include/vfs_macros.h #define SMB_VFS_LINK(conn, oldpath, newpath) ((conn)->vfs.ops.link((conn)->vfs.handles.link, (oldpath), (newpath))) vfs 84 source3/include/vfs_macros.h #define SMB_VFS_MKNOD(conn, path, mode, dev) ((conn)->vfs.ops.mknod((conn)->vfs.handles.mknod, (path), (mode), (dev))) vfs 85 source3/include/vfs_macros.h #define SMB_VFS_REALPATH(conn, path, resolved_path) ((conn)->vfs.ops.realpath((conn)->vfs.handles.realpath, (path), (resolved_path))) vfs 86 source3/include/vfs_macros.h #define SMB_VFS_NOTIFY_WATCH(conn, ctx, e, callback, private_data, handle_p) ((conn)->vfs.ops.notify_watch((conn)->vfs.handles.notify_watch, (ctx), (e), (callback), (private_data), (handle_p))) vfs 87 source3/include/vfs_macros.h #define SMB_VFS_CHFLAGS(conn, path, flags) ((conn)->vfs.ops.chflags((conn)->vfs.handles.chflags, (path), (flags))) vfs 88 source3/include/vfs_macros.h #define SMB_VFS_FILE_ID_CREATE(conn, sbuf) ((conn)->vfs.ops.file_id_create((conn)->vfs.handles.file_id_create, (sbuf))) vfs 89 source3/include/vfs_macros.h #define SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams) ((conn)->vfs.ops.streaminfo((conn)->vfs.handles.streaminfo, (fsp), (fname), (mem_ctx), (num_streams), (streams))) vfs 90 source3/include/vfs_macros.h #define SMB_VFS_GET_REAL_FILENAME(conn, path, name, mem_ctx, found_name) ((conn)->vfs.ops.get_real_filename((conn)->vfs.handles.get_real_filename, (path), (name), (mem_ctx), (found_name))) vfs 91 source3/include/vfs_macros.h #define SMB_VFS_BRL_LOCK_WINDOWS(conn, br_lck, plock, blocking_lock, blr) ((conn)->vfs.ops.brl_lock_windows((conn)->vfs.handles.brl_lock_windows, (br_lck), (plock), (blocking_lock), (blr))) vfs 92 source3/include/vfs_macros.h #define SMB_VFS_BRL_UNLOCK_WINDOWS(conn, msg_ctx, br_lck, plock) ((conn)->vfs.ops.brl_unlock_windows((conn)->vfs.handles.brl_unlock_windows, (msg_ctx), (br_lck), (plock))) vfs 93 source3/include/vfs_macros.h #define SMB_VFS_BRL_CANCEL_WINDOWS(conn, br_lck, plock, blr) ((conn)->vfs.ops.brl_cancel_windows((conn)->vfs.handles.brl_cancel_windows, (br_lck), (plock), (blr))) vfs 94 source3/include/vfs_macros.h #define SMB_VFS_STRICT_LOCK(conn, fsp, plock) ((conn)->vfs.ops.strict_lock((conn)->vfs.handles.strict_lock, (fsp), (plock))) vfs 95 source3/include/vfs_macros.h #define SMB_VFS_STRICT_UNLOCK(conn, fsp, plock) ((conn)->vfs.ops.strict_unlock((conn)->vfs.handles.strict_unlock, (fsp), (plock))) vfs 98 source3/include/vfs_macros.h #define SMB_VFS_FGET_NT_ACL(fsp, security_info, ppdesc) ((fsp)->conn->vfs.ops.fget_nt_acl((fsp)->conn->vfs.handles.fget_nt_acl, (fsp), (security_info), (ppdesc))) vfs 99 source3/include/vfs_macros.h #define SMB_VFS_GET_NT_ACL(conn, name, security_info, ppdesc) ((conn)->vfs.ops.get_nt_acl((conn)->vfs.handles.get_nt_acl, (name), (security_info), (ppdesc))) vfs 100 source3/include/vfs_macros.h #define SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd) ((fsp)->conn->vfs.ops.fset_nt_acl((fsp)->conn->vfs.handles.fset_nt_acl, (fsp), (security_info_sent), (psd))) vfs 103 source3/include/vfs_macros.h #define SMB_VFS_CHMOD_ACL(conn, name, mode) ((conn)->vfs.ops.chmod_acl((conn)->vfs.handles.chmod_acl, (name), (mode))) vfs 104 source3/include/vfs_macros.h #define SMB_VFS_FCHMOD_ACL(fsp, mode) ((fsp)->conn->vfs.ops.fchmod_acl((fsp)->conn->vfs.handles.fchmod_acl, (fsp), (mode))) vfs 106 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_ENTRY(conn, theacl, entry_id, entry_p) ((conn)->vfs.ops.sys_acl_get_entry((conn)->vfs.handles.sys_acl_get_entry, (theacl), (entry_id), (entry_p))) vfs 107 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_TAG_TYPE(conn, entry_d, tag_type_p) ((conn)->vfs.ops.sys_acl_get_tag_type((conn)->vfs.handles.sys_acl_get_tag_type, (entry_d), (tag_type_p))) vfs 108 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_PERMSET(conn, entry_d, permset_p) ((conn)->vfs.ops.sys_acl_get_permset((conn)->vfs.handles.sys_acl_get_permset, (entry_d), (permset_p))) vfs 109 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_QUALIFIER(conn, entry_d) ((conn)->vfs.ops.sys_acl_get_qualifier((conn)->vfs.handles.sys_acl_get_qualifier, (entry_d))) vfs 110 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_FILE(conn, path_p, type) ((conn)->vfs.ops.sys_acl_get_file((conn)->vfs.handles.sys_acl_get_file, (path_p), (type))) vfs 111 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_FD(fsp) ((fsp)->conn->vfs.ops.sys_acl_get_fd((fsp)->conn->vfs.handles.sys_acl_get_fd, (fsp))) vfs 112 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_CLEAR_PERMS(conn, permset) ((conn)->vfs.ops.sys_acl_clear_perms((conn)->vfs.handles.sys_acl_clear_perms, (permset))) vfs 113 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_ADD_PERM(conn, permset, perm) ((conn)->vfs.ops.sys_acl_add_perm((conn)->vfs.handles.sys_acl_add_perm, (permset), (perm))) vfs 114 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_TO_TEXT(conn, theacl, plen) ((conn)->vfs.ops.sys_acl_to_text((conn)->vfs.handles.sys_acl_to_text, (theacl), (plen))) vfs 115 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_INIT(conn, count) ((conn)->vfs.ops.sys_acl_init((conn)->vfs.handles.sys_acl_init, (count))) vfs 116 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_CREATE_ENTRY(conn, pacl, pentry) ((conn)->vfs.ops.sys_acl_create_entry((conn)->vfs.handles.sys_acl_create_entry, (pacl), (pentry))) vfs 117 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_SET_TAG_TYPE(conn, entry, tagtype) ((conn)->vfs.ops.sys_acl_set_tag_type((conn)->vfs.handles.sys_acl_set_tag_type, (entry), (tagtype))) vfs 118 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_SET_QUALIFIER(conn, entry, qual) ((conn)->vfs.ops.sys_acl_set_qualifier((conn)->vfs.handles.sys_acl_set_qualifier, (entry), (qual))) vfs 119 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_SET_PERMSET(conn, entry, permset) ((conn)->vfs.ops.sys_acl_set_permset((conn)->vfs.handles.sys_acl_set_permset, (entry), (permset))) vfs 120 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_VALID(conn, theacl) ((conn)->vfs.ops.sys_acl_valid((conn)->vfs.handles.sys_acl_valid, (theacl))) vfs 121 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_SET_FILE(conn, name, acltype, theacl) ((conn)->vfs.ops.sys_acl_set_file((conn)->vfs.handles.sys_acl_set_file, (name), (acltype), (theacl))) vfs 122 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_SET_FD(fsp, theacl) ((fsp)->conn->vfs.ops.sys_acl_set_fd((fsp)->conn->vfs.handles.sys_acl_set_fd, (fsp), (theacl))) vfs 123 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_DELETE_DEF_FILE(conn, path) ((conn)->vfs.ops.sys_acl_delete_def_file((conn)->vfs.handles.sys_acl_delete_def_file, (path))) vfs 124 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_GET_PERM(conn, permset, perm) ((conn)->vfs.ops.sys_acl_get_perm((conn)->vfs.handles.sys_acl_get_perm, (permset), (perm))) vfs 125 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_FREE_TEXT(conn, text) ((conn)->vfs.ops.sys_acl_free_text((conn)->vfs.handles.sys_acl_free_text, (text))) vfs 126 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_FREE_ACL(conn, posix_acl) ((conn)->vfs.ops.sys_acl_free_acl((conn)->vfs.handles.sys_acl_free_acl, (posix_acl))) vfs 127 source3/include/vfs_macros.h #define SMB_VFS_SYS_ACL_FREE_QUALIFIER(conn, qualifier, tagtype) ((conn)->vfs.ops.sys_acl_free_qualifier((conn)->vfs.handles.sys_acl_free_qualifier, (qualifier), (tagtype))) vfs 130 source3/include/vfs_macros.h #define SMB_VFS_GETXATTR(conn,path,name,value,size) ((conn)->vfs.ops.getxattr((conn)->vfs.handles.getxattr,(path),(name),(value),(size))) vfs 131 source3/include/vfs_macros.h #define SMB_VFS_LGETXATTR(conn,path,name,value,size) ((conn)->vfs.ops.lgetxattr((conn)->vfs.handles.lgetxattr,(path),(name),(value),(size))) vfs 132 source3/include/vfs_macros.h #define SMB_VFS_FGETXATTR(fsp,name,value,size) ((fsp)->conn->vfs.ops.fgetxattr((fsp)->conn->vfs.handles.fgetxattr,(fsp),(name),(value),(size))) vfs 133 source3/include/vfs_macros.h #define SMB_VFS_LISTXATTR(conn,path,list,size) ((conn)->vfs.ops.listxattr((conn)->vfs.handles.listxattr,(path),(list),(size))) vfs 134 source3/include/vfs_macros.h #define SMB_VFS_LLISTXATTR(conn,path,list,size) ((conn)->vfs.ops.llistxattr((conn)->vfs.handles.llistxattr,(path),(list),(size))) vfs 135 source3/include/vfs_macros.h #define SMB_VFS_FLISTXATTR(fsp,list,size) ((fsp)->conn->vfs.ops.flistxattr((fsp)->conn->vfs.handles.flistxattr,(fsp),(list),(size))) vfs 136 source3/include/vfs_macros.h #define SMB_VFS_REMOVEXATTR(conn,path,name) ((conn)->vfs.ops.removexattr((conn)->vfs.handles.removexattr,(path),(name))) vfs 137 source3/include/vfs_macros.h #define SMB_VFS_LREMOVEXATTR(conn,path,name) ((conn)->vfs.ops.lremovexattr((conn)->vfs.handles.lremovexattr,(path),(name))) vfs 138 source3/include/vfs_macros.h #define SMB_VFS_FREMOVEXATTR(fsp,name) ((fsp)->conn->vfs.ops.fremovexattr((fsp)->conn->vfs.handles.fremovexattr,(fsp),(name))) vfs 139 source3/include/vfs_macros.h #define SMB_VFS_SETXATTR(conn,path,name,value,size,flags) ((conn)->vfs.ops.setxattr((conn)->vfs.handles.setxattr,(path),(name),(value),(size),(flags))) vfs 140 source3/include/vfs_macros.h #define SMB_VFS_LSETXATTR(conn,path,name,value,size,flags) ((conn)->vfs.ops.lsetxattr((conn)->vfs.handles.lsetxattr,(path),(name),(value),(size),(flags))) vfs 141 source3/include/vfs_macros.h #define SMB_VFS_FSETXATTR(fsp,name,value,size,flags) ((fsp)->conn->vfs.ops.fsetxattr((fsp)->conn->vfs.handles.fsetxattr,(fsp),(name),(value),(size),(flags))) vfs 144 source3/include/vfs_macros.h #define SMB_VFS_AIO_READ(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_read((fsp)->conn->vfs.handles.aio_read,(fsp),(aiocb))) vfs 145 source3/include/vfs_macros.h #define SMB_VFS_AIO_WRITE(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_write((fsp)->conn->vfs.handles.aio_write,(fsp),(aiocb))) vfs 146 source3/include/vfs_macros.h #define SMB_VFS_AIO_RETURN(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_return_fn((fsp)->conn->vfs.handles.aio_return,(fsp),(aiocb))) vfs 147 source3/include/vfs_macros.h #define SMB_VFS_AIO_CANCEL(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_cancel((fsp)->conn->vfs.handles.aio_cancel,(fsp),(aiocb))) vfs 148 source3/include/vfs_macros.h #define SMB_VFS_AIO_ERROR(fsp,aiocb) ((fsp)->conn->vfs.ops.aio_error_fn((fsp)->conn->vfs.handles.aio_error,(fsp),(aiocb))) vfs 149 source3/include/vfs_macros.h #define SMB_VFS_AIO_FSYNC(fsp,op,aiocb) ((fsp)->conn->vfs.ops.aio_fsync((fsp)->conn->vfs.handles.aio_fsync,(fsp),(op),(aiocb))) vfs 150 source3/include/vfs_macros.h #define SMB_VFS_AIO_SUSPEND(fsp,aiocb,n,ts) ((fsp)->conn->vfs.ops.aio_suspend((fsp)->conn->vfs.handles.aio_suspend,(fsp),(aiocb),(n),(ts))) vfs 151 source3/include/vfs_macros.h #define SMB_VFS_AIO_FORCE(fsp) ((fsp)->conn->vfs.ops.aio_force((fsp)->conn->vfs.handles.aio_force,(fsp))) vfs 154 source3/include/vfs_macros.h #define SMB_VFS_IS_OFFLINE(conn,path,sbuf) ((conn)->vfs.ops.is_offline((conn)->vfs.handles.is_offline,(path),(sbuf))) vfs 155 source3/include/vfs_macros.h #define SMB_VFS_SET_OFFLINE(conn,path) ((conn)->vfs.ops.set_offline((conn)->vfs.handles.set_offline,(path))) vfs 222 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_FILE_ID_CREATE(conn, sbuf) ((conn)->vfs.ops_opaque.file_id_create((conn)->vfs_opaque.handles.file_id_create, (sbuf))) vfs 103 source3/smbd/vfs.c static inline void vfs_set_operation(struct vfs_ops * vfs, vfs_op_type which, vfs 106 source3/smbd/vfs.c ((struct vfs_handle_struct **)&vfs->handles)[which] = handle; vfs 107 source3/smbd/vfs.c ((void **)(void *)&vfs->ops)[which] = op; vfs 184 source3/smbd/vfs.c memcpy(&handle->vfs_next, &conn->vfs, sizeof(struct vfs_ops)); vfs 202 source3/smbd/vfs.c vfs_set_operation(&conn->vfs, ops[i].type, handle, ops[i].op); vfs 27 source3/torture/cmd_vfs.c static NTSTATUS cmd_load_module(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 37 source3/torture/cmd_vfs.c if (!vfs_init_custom(vfs->conn, argv[i])) { vfs 46 source3/torture/cmd_vfs.c static NTSTATUS cmd_populate(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 56 source3/torture/cmd_vfs.c vfs->data = TALLOC_ARRAY(mem_ctx, char, size); vfs 57 source3/torture/cmd_vfs.c if (vfs->data == NULL) { vfs 61 source3/torture/cmd_vfs.c memset(vfs->data, c, size); vfs 62 source3/torture/cmd_vfs.c vfs->data_size = size; vfs 66 source3/torture/cmd_vfs.c static NTSTATUS cmd_show_data(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 74 source3/torture/cmd_vfs.c if (vfs->data == NULL || vfs->data_size == 0) { vfs 84 source3/torture/cmd_vfs.c len = vfs->data_size; vfs 86 source3/torture/cmd_vfs.c if ((offset + len) > vfs->data_size) { vfs 90 source3/torture/cmd_vfs.c dump_data(0, (uint8 *)(vfs->data) + offset, len); vfs 94 source3/torture/cmd_vfs.c static NTSTATUS cmd_connect(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 96 source3/torture/cmd_vfs.c SMB_VFS_CONNECT(vfs->conn, lp_servicename(SNUM(vfs->conn)), "vfstest"); vfs 100 source3/torture/cmd_vfs.c static NTSTATUS cmd_disconnect(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 102 source3/torture/cmd_vfs.c SMB_VFS_DISCONNECT(vfs->conn); vfs 106 source3/torture/cmd_vfs.c static NTSTATUS cmd_disk_free(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 114 source3/torture/cmd_vfs.c diskfree = SMB_VFS_DISK_FREE(vfs->conn, argv[1], False, &bsize, &dfree, &dsize); vfs 124 source3/torture/cmd_vfs.c static NTSTATUS cmd_opendir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 131 source3/torture/cmd_vfs.c vfs->currentdir = SMB_VFS_OPENDIR(vfs->conn, argv[1], NULL, 0); vfs 132 source3/torture/cmd_vfs.c if (vfs->currentdir == NULL) { vfs 142 source3/torture/cmd_vfs.c static NTSTATUS cmd_readdir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 147 source3/torture/cmd_vfs.c if (vfs->currentdir == NULL) { vfs 152 source3/torture/cmd_vfs.c dent = SMB_VFS_READDIR(vfs->conn, vfs->currentdir, &st); vfs 191 source3/torture/cmd_vfs.c static NTSTATUS cmd_mkdir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 198 source3/torture/cmd_vfs.c if (SMB_VFS_MKDIR(vfs->conn, argv[1], 00755) == -1) { vfs 208 source3/torture/cmd_vfs.c static NTSTATUS cmd_closedir(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 212 source3/torture/cmd_vfs.c if (vfs->currentdir == NULL) { vfs 217 source3/torture/cmd_vfs.c ret = SMB_VFS_CLOSEDIR(vfs->conn, vfs->currentdir); vfs 224 source3/torture/cmd_vfs.c vfs->currentdir = NULL; vfs 229 source3/torture/cmd_vfs.c static NTSTATUS cmd_open(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 325 source3/torture/cmd_vfs.c fsp->conn = vfs->conn; vfs 327 source3/torture/cmd_vfs.c fsp->fh->fd = SMB_VFS_OPEN(vfs->conn, argv[1], fsp, flags, mode); vfs 336 source3/torture/cmd_vfs.c vfs->files[fsp->fh->fd] = fsp; vfs 342 source3/torture/cmd_vfs.c static NTSTATUS cmd_pathfunc(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 352 source3/torture/cmd_vfs.c ret = SMB_VFS_RMDIR(vfs->conn, argv[1]); vfs 354 source3/torture/cmd_vfs.c ret = SMB_VFS_UNLINK(vfs->conn, argv[1]); vfs 356 source3/torture/cmd_vfs.c ret = SMB_VFS_CHDIR(vfs->conn, argv[1]); vfs 372 source3/torture/cmd_vfs.c static NTSTATUS cmd_close(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 382 source3/torture/cmd_vfs.c if (vfs->files[fd] == NULL) { vfs 387 source3/torture/cmd_vfs.c ret = SMB_VFS_CLOSE(vfs->files[fd]); vfs 393 source3/torture/cmd_vfs.c SAFE_FREE(vfs->files[fd]->fsp_name); vfs 394 source3/torture/cmd_vfs.c SAFE_FREE(vfs->files[fd]->fh); vfs 395 source3/torture/cmd_vfs.c SAFE_FREE(vfs->files[fd]); vfs 396 source3/torture/cmd_vfs.c vfs->files[fd] = NULL; vfs 401 source3/torture/cmd_vfs.c static NTSTATUS cmd_read(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 414 source3/torture/cmd_vfs.c vfs->data = TALLOC_ARRAY(mem_ctx, char, size); vfs 415 source3/torture/cmd_vfs.c if (vfs->data == NULL) { vfs 419 source3/torture/cmd_vfs.c vfs->data_size = size; vfs 421 source3/torture/cmd_vfs.c rsize = SMB_VFS_READ(vfs->files[fd], vfs->data, size); vfs 432 source3/torture/cmd_vfs.c static NTSTATUS cmd_write(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 444 source3/torture/cmd_vfs.c if (vfs->data == NULL) { vfs 449 source3/torture/cmd_vfs.c if (vfs->data_size < size) { vfs 454 source3/torture/cmd_vfs.c wsize = SMB_VFS_WRITE(vfs->files[fd], vfs->data, size); vfs 466 source3/torture/cmd_vfs.c static NTSTATUS cmd_lseek(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 485 source3/torture/cmd_vfs.c pos = SMB_VFS_LSEEK(vfs->files[fd], offset, whence); vfs 496 source3/torture/cmd_vfs.c static NTSTATUS cmd_rename(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 504 source3/torture/cmd_vfs.c ret = SMB_VFS_RENAME(vfs->conn, argv[1], argv[2]); vfs 515 source3/torture/cmd_vfs.c static NTSTATUS cmd_fsync(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 524 source3/torture/cmd_vfs.c ret = SMB_VFS_FSYNC(vfs->files[fd]); vfs 535 source3/torture/cmd_vfs.c static NTSTATUS cmd_stat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 549 source3/torture/cmd_vfs.c ret = SMB_VFS_STAT(vfs->conn, argv[1], &st); vfs 592 source3/torture/cmd_vfs.c static NTSTATUS cmd_fstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 612 source3/torture/cmd_vfs.c if (vfs->files[fd] == NULL) { vfs 617 source3/torture/cmd_vfs.c if (SMB_VFS_FSTAT(vfs->files[fd], &st) == -1) { vfs 658 source3/torture/cmd_vfs.c static NTSTATUS cmd_lstat(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 671 source3/torture/cmd_vfs.c if (SMB_VFS_LSTAT(vfs->conn, argv[1], &st) == -1) { vfs 712 source3/torture/cmd_vfs.c static NTSTATUS cmd_chmod(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 721 source3/torture/cmd_vfs.c if (SMB_VFS_CHMOD(vfs->conn, argv[1], mode) == -1) { vfs 731 source3/torture/cmd_vfs.c static NTSTATUS cmd_fchmod(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 746 source3/torture/cmd_vfs.c if (vfs->files[fd] == NULL) { vfs 751 source3/torture/cmd_vfs.c if (SMB_VFS_FCHMOD(vfs->files[fd], mode) == -1) { vfs 761 source3/torture/cmd_vfs.c static NTSTATUS cmd_chown(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 772 source3/torture/cmd_vfs.c if (SMB_VFS_CHOWN(vfs->conn, argv[1], uid, gid) == -1) { vfs 782 source3/torture/cmd_vfs.c static NTSTATUS cmd_fchown(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 799 source3/torture/cmd_vfs.c if (vfs->files[fd] == NULL) { vfs 803 source3/torture/cmd_vfs.c if (SMB_VFS_FCHOWN(vfs->files[fd], uid, gid) == -1) { vfs 813 source3/torture/cmd_vfs.c static NTSTATUS cmd_getwd(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 816 source3/torture/cmd_vfs.c if (SMB_VFS_GETWD(vfs->conn, buf) == NULL) { vfs 825 source3/torture/cmd_vfs.c static NTSTATUS cmd_utime(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 837 source3/torture/cmd_vfs.c if (SMB_VFS_NTIMES(vfs->conn, argv[1], &ft) != 0) { vfs 846 source3/torture/cmd_vfs.c static NTSTATUS cmd_ftruncate(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 861 source3/torture/cmd_vfs.c if (vfs->files[fd] == NULL) { vfs 866 source3/torture/cmd_vfs.c if (SMB_VFS_FTRUNCATE(vfs->files[fd], off) == -1) { vfs 875 source3/torture/cmd_vfs.c static NTSTATUS cmd_lock(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 948 source3/torture/cmd_vfs.c if (SMB_VFS_LOCK(vfs->files[fd], op, offset, count, type) == False) { vfs 957 source3/torture/cmd_vfs.c static NTSTATUS cmd_symlink(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 964 source3/torture/cmd_vfs.c if (SMB_VFS_SYMLINK(vfs->conn, argv[1], argv[2]) == -1) { vfs 974 source3/torture/cmd_vfs.c static NTSTATUS cmd_readlink(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 984 source3/torture/cmd_vfs.c if ((size = SMB_VFS_READLINK(vfs->conn, argv[1], buffer, PATH_MAX)) == -1) { vfs 995 source3/torture/cmd_vfs.c static NTSTATUS cmd_link(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 1002 source3/torture/cmd_vfs.c if (SMB_VFS_LINK(vfs->conn, argv[1], argv[2]) == -1) { vfs 1011 source3/torture/cmd_vfs.c static NTSTATUS cmd_mknod(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 1035 source3/torture/cmd_vfs.c if (SMB_VFS_MKNOD(vfs->conn, argv[1], mode, dev) == -1) { vfs 1044 source3/torture/cmd_vfs.c static NTSTATUS cmd_realpath(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 1053 source3/torture/cmd_vfs.c if (SMB_VFS_REALPATH(vfs->conn, argv[1], respath) == NULL) { vfs 110 source3/torture/vfstest.c static NTSTATUS cmd_conf(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, vfs 128 source3/torture/vfstest.c static NTSTATUS cmd_help(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, vfs 186 source3/torture/vfstest.c static NTSTATUS cmd_debuglevel(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 202 source3/torture/vfstest.c static NTSTATUS cmd_freemem(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 207 source3/torture/vfstest.c vfs->data = NULL; vfs 208 source3/torture/vfstest.c vfs->data_size = 0; vfs 212 source3/torture/vfstest.c static NTSTATUS cmd_quit(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, const char **argv) vfs 264 source3/torture/vfstest.c static NTSTATUS do_cmd(struct vfs_state *vfs, struct cmd_set *cmd_entry, char *cmd) vfs 306 source3/torture/vfstest.c result = cmd_entry->fn(vfs, mem_ctx, argc, (const char **)argv); vfs 328 source3/torture/vfstest.c static NTSTATUS process_cmd(struct vfs_state *vfs, char *cmd) vfs 359 source3/torture/vfstest.c result = do_cmd(vfs, temp_set, cmd); vfs 517 source3/torture/vfstest.c static struct vfs_state vfs; vfs 565 source3/torture/vfstest.c vfs.conn = conn_new(); vfs 567 source3/torture/vfstest.c vfs.files[i] = NULL; vfs 570 source3/torture/vfstest.c smbd_vfs_init(vfs.conn); vfs 574 source3/torture/vfstest.c process_file(&vfs, filename); vfs 584 source3/torture/vfstest.c process_cmd(&vfs, cmd); vfs 603 source3/torture/vfstest.c process_cmd(&vfs, line); vfs 608 source3/torture/vfstest.c conn_free(vfs.conn); vfs 40 source3/torture/vfstest.h NTSTATUS (*fn)(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc,