1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
samba-mirror/source3/torture
Volker Lendecke 5fc016f268 vfs: change openat propotype to match linux openat2
The Linux prototype for openat2 looks like this:

       long openat2(int dirfd, const char *pathname,
                   struct open_how *how, size_t size);

where "struct open_how" is defined in "linux/openat2.h". It is
designed to be extensible with further flags.

The "size" parameter is required because there is no type checking
between userland and kernelspace, so the way for Linux to find which
version of open_how is being passed in is looking at the size:
"open_how" is expected to only every grow with additional fields,
should a change be necessary in the future.

Samba does not have this problem, we can typecheck the struct and
pointers, we expect all VFS modules to be compiled against the current
vfs.h.

For now this adds no functionality, but it will make further patches
much smaller.

Pair-programmed-with: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2022-08-06 01:43:50 +00:00
..
bench_pthreadpool.c
cmd_vfs.c vfs: change openat propotype to match linux openat2 2022-08-06 01:43:50 +00:00
denytest.c
locktest2.c smbd: Give locking/share_mode_lock.c its own header file 2020-11-10 19:49:34 +00:00
mangle_test.c s3: torture: In torture_mangle(), use torture_deltree() for setup and cleanup. 2021-12-09 18:06:35 +00:00
masktest.c s3: torture: In test_mask(), use torture_deltree() for setup. 2021-12-09 18:06:35 +00:00
msg_sink.c
msg_source.c
msgtest.c
nbench.c
nbio.c libsmb: Remove "mntpoint" argument from cli_list() callback 2020-11-04 18:55:40 +00:00
pdbtest.c s3/torture/pdbtest: fix always false condition 2022-01-26 11:44:32 +00:00
proto.h s3: torture: Add 2 new tests SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO, SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES. 2022-03-22 16:49:34 +00:00
scanner.c
test_addrchange.c
test_async_echo.c
test_authinfo_structs.c
test_buffersize.c
test_case_insensitive.c
test_chain3.c
test_cleanup.c torture3: Remove cleanup3 2019-09-17 22:49:39 +00:00
test_ctdbd_conn.c torture3: Test ctdb_req_send/recv 2020-04-28 09:08:40 +00:00
test_dbwrap_ctdb.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
test_dbwrap_do_locked.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
test_dbwrap_watch.c s3:dbwrap_watch: allow callers of dbwrap_watched_watch_send/recv() to manage the watcher instances 2022-07-26 13:40:34 +00:00
test_g_lock.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
test_hidenewfiles.c libsmb: Remove "mntpoint" argument from cli_list() callback 2020-11-04 18:55:40 +00:00
test_idmap_cache.c
test_idmap_tdb_common.c test_idmap_tdb_common: correctly initialize the idmap domain with an init function 2020-10-23 03:25:35 +00:00
test_matching.c s3:lib: add samba_path_matching_regex_sub1_create() 2021-07-01 13:02:31 +00:00
test_messaging_fd_passing.c
test_messaging_read.c
test_messaging_send_all.c
test_namemap_cache.c
test_notify_online.c
test_notify.c torture3: Align integer types 2020-07-09 20:16:40 +00:00
test_nttrans_create.c
test_nttrans_fsctl.c
test_oplock_cancel.c torture: avoid OPLOCK-CANCEL flapping on busy gitlab CI 2020-11-19 20:00:38 +00:00
test_posix_append.c torture3: Use cli_qfileinfo_basic() in run_posix_append() 2020-06-04 17:11:39 +00:00
test_posix.c s3: torture: Add POSIX-SYMLINK-SETPATHINFO regression test. 2021-06-16 11:10:36 +00:00
test_pthreadpool_tevent.c
test_readdir_timestamp.c libsmb: Remove "mntpoint" argument from cli_list() callback 2020-11-04 18:55:40 +00:00
test_smb2.c s3: torture: Add 2 new tests SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO, SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES. 2022-03-22 16:49:34 +00:00
test_smbsock_any_connect.c
torture.c torture3: Fix an error check in torture_delete_fn() 2022-07-25 12:04:33 +00:00
utable.c s3: torture: In torture_casetable(), use torture_deltree() for setup and cleanup. 2021-12-09 18:06:35 +00:00
vfstest_chain.c
vfstest.c vfstest: don't ignore unknown options 2021-09-10 15:10:30 +00:00
vfstest.h vfstest: use OpenDir() 2020-03-24 19:48:40 +00:00
wbc_async.c torture3: Don't duplicate set_blocking() 2019-08-06 21:49:28 +00:00
wbc_async.h
wscript_build torture: Disable vfs chain test dependant on SMB1 2022-04-07 17:37:30 +00:00