mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
682c77be74
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 |
||
---|---|---|
.. | ||
aliases.c | ||
attr.c | ||
base.c | ||
charset.c | ||
cxd_known.h | ||
delaywrite.c | ||
delete.c | ||
denytest.c | ||
dir.c | ||
disconnect.c | ||
locking.c | ||
mangle_test.c | ||
misc.c | ||
properties.c | ||
rename.c | ||
scanner.c | ||
secleak.c | ||
unlink.c | ||
utable.c |