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)
committerJule Anger <janger@samba.org>
Wed, 12 Jan 2022 11:48:14 +0000 (11:48 +0000)
commit032df88d61d569b60f311c7447521759ac7c0735
tree2b5e772d2e89bdd2c5e596d3560bc1bb25f522e3
parent96cd0ab567e5cf5ff8cc41daf9dc7c567b3a88bb
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>
(cherry picked from commit 30fea0d31117c1a899cd333a9b8a62ba765dbb02)
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