summaryrefslogtreecommitdiff
path: root/examples/VFS
Commit message (Collapse)AuthorAgeFilesLines
* s3: VFS: Change the function signature for SMB_VFS_READ_DFS_PATHAT() to take ↵Jeremy Allison2020-06-032-2/+2
| | | | | | | | | | | | a non-const smb_filename. Otherwise there's no good way to return proper stat(2) information for a DFS link without making assumptions it's a symlink store. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14391 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* vfs: remove SMB_VFS_OPEN()Ralph Boehme2020-05-212-15/+0
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: add SMB_VFS_OPENAT()Ralph Boehme2020-05-212-0/+23
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: add dirfsp arg to SMB_VFS_CREATE_FILE()Ralph Boehme2020-05-212-0/+3
| | | | | | | | | As create_file_default() still need to be updated in the future to replace the SMB_VFS_STAT() calls with AT-based versions, it asserts (dirfsp == dirfsp->conn->cwd_fsp). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: remove root_dir_fid arg from SMB_VFS_CREATE_FILE()Ralph Boehme2020-05-142-3/+0
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 14 19:43:27 UTC 2020 on sn-devel-184
* s3: VFS: Complete the replacement of SMB_VFS_GET_NT_ACL() -> ↵Jeremy Allison2020-05-072-24/+0
| | | | | | | | | | SMB_VFS_GET_NT_ACL_AT(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu May 7 21:04:59 UTC 2020 on sn-devel-184
* s3: VFS: Add SMB_VFS_GET_NT_ACL_AT().Jeremy Allison2020-05-072-0/+27
| | | | | | | | | | | | | | Currently identical to SMB_VFS_GET_NT_ACL(). Next, add to all VFS modules that implement get_nt_acl and eventually remove get_nt_acl. NB. Modules that use smb_vfs_assert_all_fns() have SMB_VFS_GET_NT_ACL_AT() will not build until they have this function added. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* smbd: vfs: convert link_contents arg of SMB_VFS_SYMLINKAT() to struct ↵Ralph Boehme2020-05-052-2/+2
| | | | | | | smb_filename Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: convert SMB_VFS_GET_REAL_FILENAME() arg path to be a struct smb_filenameRalph Boehme2020-05-052-2/+2
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: remove SMB_VFS_OPENDIR()Ralph Boehme2020-03-242-18/+0
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 24 21:23:43 UTC 2020 on sn-devel-184
* s3: VFS: Add SMB_VFS_READ_DFS_PATHAT().Jeremy Allison2020-02-182-0/+27
| | | | | | | Not yet used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: Add SMB_VFS_CREATE_DFS_PATHAT().Jeremy Allison2020-01-102-0/+24
| | | | | | | Not yet used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* examples/VFS/skel_transparent.c: typo fixesBjörn Jacke2019-10-311-1/+1
| | | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* s3: VFS: Complete the removal of SMB_VFS_CHOWN()Jeremy Allison2019-10-152-19/+0
| | | | | | | | | | No longer used anywhere. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 15 20:07:51 UTC 2019 on sn-devel-184
* s3: VFS: Complete the removal of SMB_VFS_RMDIR()Jeremy Allison2019-10-102-15/+0
| | | | | | | | | | All users now use SMB_VFS_UNLINKAT(..., AT_REMOVEDIR). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Oct 10 07:26:43 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_FCNTLAnoop C S2019-10-082-0/+24
| | | | | | Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_UNLINK() -> SMB_VFS_UNLINKAT().Jeremy Allison2019-09-262-15/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Sep 26 18:40:53 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_UNLINKAT().Jeremy Allison2019-09-262-0/+22
| | | | | | | | | | Currently identical to SMB_VFS_UNLINK(). Next, add to all VFS modules that implement unlink and eventually remove unlink. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_MKDIR() -> SMB_VFS_MKDIRAT().Jeremy Allison2019-09-112-17/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Sep 11 19:44:44 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_MKDIRAT().Jeremy Allison2019-09-112-0/+22
| | | | | | | | | | Currently identical to SMB_VFS_MKDIR(). Next, add to all VFS modules that implement mkdir and eventually remove mkdir. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_SYMLINK() -> SMB_VFS_SYMLINKAT().Jeremy Allison2019-09-032-17/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Sep 3 22:32:30 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_SYMLINKAT().Jeremy Allison2019-09-032-0/+22
| | | | | | | | | | Currently identical to SMB_VFS_SYMLINK(). Next, add to all VFS modules that implement symlink and eventually remove symlink. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_READLINK() -> SMB_VFS_READLINKAT().Jeremy Allison2019-08-232-19/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Aug 23 20:06:22 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_READLINKAT().Jeremy Allison2019-08-232-0/+25
| | | | | | | | | | Currently identical to SMB_VFS_READLINK(). Next, add to all VFS modules that implement readlink and eventually remove readlink. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_MKNOD() -> SMB_VFS_MKNODAT().Jeremy Allison2019-08-222-19/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Aug 22 19:17:07 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_MKNODAT().Jeremy Allison2019-08-222-0/+25
| | | | | | | | | | Currently identical to SMB_VFS_MKNOD(). Next, add to all VFS modules that implement mknod and eventually remove mknod. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_LINK() -> SMB_VFS_LINKAT().Jeremy Allison2019-08-202-17/+0
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Aug 20 22:26:17 UTC 2019 on sn-devel-184
* s3: VFS: Add SMB_VFS_LINKAT().Jeremy Allison2019-08-202-0/+28
| | | | | | | | | | Currently identical to SMB_VFS_LINK(). Next, move add to all VFS modules that implement link and eventually remove link. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s3: VFS: Complete the replacement of SMB_VFS_RENAME() -> SMB_VFS_RENAMEAT().Jeremy Allison2019-08-162-17/+0
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: VFS: Add SMB_VFS_RENAMEAT().Jeremy Allison2019-08-162-0/+25
| | | | | | | | | | | Currently identical to SMB_VFS_RENAME() - uses AT_FDCWD for both src and dst directories. Next, move add to all VFS modules that implement rename and eventually remove rename. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* smbd: Make "lease" const in SMB_VFS_CREATE_FILE()Volker Lendecke2019-08-092-2/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: Remove unused "msg_ctx" from SMB_VFS_BRL_UNLOCK_WINDOWSVolker Lendecke2019-07-022-3/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: Remove "blocking_lock" from SMB_VFS_BRL_LOCK_WINDOWSVolker Lendecke2019-07-022-6/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:vfs: add SMB_VFS_FS_FILE_ID()Ralph Boehme2019-07-012-0/+15
| | | | | | | Not yet used, that comes next. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs: Remove SMB_VFS_BRL_CANCEL_WINDOWSVolker Lendecke2019-06-202-17/+0
| | | | | | | | | | | This is not called anymore, bump the VFS version number in a separate commit Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jun 20 18:34:20 UTC 2019 on sn-devel-184
* s3:smbd: pass (raw) ev to SMB_VFS_GET_DOS_ATTRIBUTES_SEND() instead of ↵Ralph Boehme2019-01-112-5/+3
| | | | | | | | | | | smb_vfs_ev_glue This also removes smb_vfs_ev_glue_[push|pop]_use() as the only caller got removed. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: let SMB_VFS_GETXATTRAT_SEND() do explicit impersonationRalph Boehme2019-01-112-5/+3
| | | | | | | | | | SMB_VFS_GETXATTRAT_SEND() gets passed a raw event context and the default implementation uses that as well a raw threadpool. Impersonation is done explicitly instead of by the tevent and pthreadpool wrappers. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: vfs: add SMB_VFS_GET_DOS_ATTRIBUTES_SEND/RECVRalph Boehme2018-07-272-0/+130
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: vfs: add SMB_VFS_GETXATTRAT_SEND/RECVRalph Boehme2018-07-272-0/+145
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* examples/VFS/skel_transparent: make vfs_fn_pointers staticStefan Metzmacher2018-07-251-1/+1
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jul 25 20:44:12 CEST 2018 on sn-devel-144
* examples/VFS/skel_opaque: make vfs_fn_pointers staticRalph Boehme2018-07-251-1/+1
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* examples/VFS/skel_opaque: fix a likely a copy/paste errorRalph Boehme2018-07-251-1/+0
| | | | | | | This line was probably copied over from skel_transparent.c, remove it. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* examples/VFS/skel_transparent: call smb_vfs_assert_all_fns()Stefan Metzmacher2018-07-251-0/+8
| | | | | | | This template should always include all calls. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* examples/VFS/skel_transparent: add missing durable handle functionsRalph Boehme2018-07-251-0/+46
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* examples/VFS/skel_transparent: add missing audit_file_fnRalph Boehme2018-07-251-0/+14
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* examples/VFS/skel_opaque: call smb_vfs_assert_all_fns()Stefan Metzmacher2018-07-251-0/+7
| | | | | | | This template should always implement all calls. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* examples/VFS/skel_opaque: add missing durable handle functionsRalph Boehme2018-07-251-0/+33
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* examples/VFS/skel_opaque: add missing audit_file_fnRalph Boehme2018-07-251-0/+10
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: VFS: Remove SMB_VFS_FCHMOD_ACL().Jeremy Allison2018-05-252-17/+0
| | | | | | | No longer used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3: VFS: Remove SMB_VFS_CHMOD_ACL().Jeremy Allison2018-05-252-17/+0
| | | | | | | No longer used. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>