tests: Add 2 tests for unique fileid's with top bit set (generated from itime) for...
authorJeremy Allison <jra@samba.org>
Thu, 6 Jan 2022 23:11:20 +0000 (15:11 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 8 Jan 2022 05:43:32 +0000 (05:43 +0000)
commit30fea0d31117c1a899cd333a9b8a62ba765dbb02
tree3b086d4c4c53b502d99e19f42aaa74863fd6a4f1
parentea9dc21a2308b9d8ad51d3205327e9e91ade9d84
tests: Add 2 tests for unique fileid's with top bit set (generated from itime) for files and directories.

smb2.fileid_unique.fileid_unique
smb2.fileid_unique.fileid_unique-dir

Create 100 files or directories as fast as we can
against a "normal" share, then read info on them
and ensure (a) top bit is set (generated from itime)
and (b) uniqueness across all generated objects
(checks poor timestamp resolution doesn't create
duplicate fileids).

This shows that even on ext4, this is enough to
cause duplicate fileids to be returned.

Add knownfail.d/fileid-unique

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14928

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
selftest/knownfail.d/fileid-unique [new file with mode: 0644]
source3/selftest/tests.py
source4/selftest/tests.py
source4/torture/smb2/create.c
source4/torture/smb2/smb2.c