1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/torture/basic
Amir Goldstein 682c77be74 s4:torture:basic: use milliseconds granularity in delayed_write_update7
The test sets an mtime with non zero nsec and verifies that
the timestamp of pre-close matches the timestamp after close-open.

This is a regression test for
https://bugzilla.samba.org/show_bug.cgi?id=6529

The bug speaks of loosing the milliseconds part of the timestamp,
but the test uses a value of 103*100ns for the sub-second part.

Meaning that if the backing filesystem has only milliseconds
granularity, the test practically checks that a value of
0 milliseconds is preserved, which will not have actually
caught the bug.

Also, with the default 'smbd getinfo ask sharemode = yes'
the test will fail if the filesystem truncates the sub-second part
to milliseconds granularity.

Use a non-zero milliseconds value with zero microseconds in the test
to support backing filesystems with milliseconds granularity.

Signed-off-by: Amir Goldstein <amir@ctera.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar  1 20:55:47 UTC 2023 on atb-devel-224
2023-03-01 20:55:47 +00:00
..
aliases.c
attr.c torture4: openattr always succeeds 2020-06-24 22:13:10 +00:00
base.c CI: add a test for @GMT mask in SMB1 find 2023-01-13 01:13:01 +00:00
charset.c
cxd_known.h
delaywrite.c s4:torture:basic: use milliseconds granularity in delayed_write_update7 2023-03-01 20:55:47 +00:00
delete.c torture: Fix whitespace 2023-01-04 08:54:32 +00:00
denytest.c source4/torture: Drop unused variable tdif 2022-02-17 18:12:52 +00:00
dir.c
disconnect.c
locking.c Fix spelling s/processs/process/ 2018-05-12 02:09:27 +02:00
mangle_test.c s4: torture: Use smbcli_unlink_wcard() to cleanup in base.mangle test. 2021-12-09 18:06:35 +00:00
misc.c s4:torture: Migrate smbtorture to new cmdline option parser 2021-06-16 00:34:38 +00:00
properties.c
rename.c
scanner.c
secleak.c
unlink.c
utable.c s4: torture: Use smbcli_unlink_wcard() in base.casetable test. 2021-12-09 18:06:35 +00:00