]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: enable kernel change notifications in the fileserver environment
authorRalph Boehme <slow@samba.org>
Thu, 13 Jul 2017 14:01:53 +0000 (16:01 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 25 Oct 2017 06:43:01 +0000 (08:43 +0200)
This environment is currently not used for any test in the smb2
testsuite, so this change doesn't affect any existing test.

A subsequent commit will add a test for change notifications with kernel
change notify enabled. It verifies a bug (this one) that only crops up
in such a setup and causes rename events to get lost.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12903

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(backported from commit fb8e0343ebebac322d545b54c33b3c1e7bcda393)

selftest/target/Samba3.pm

index b3bcc8a60b483a62e6046a1f0890c0c7e6cc817e..66ac1e1f45ff0a9cab905c6a77e8c9347a3ec337 100755 (executable)
@@ -781,6 +781,8 @@ sub setup_fileserver($$)
        push(@dirs,$tarmode_sharedir);
 
        my $fileserver_options = "
+       kernel change notify = yes
+
 [lowercase]
        path = $lower_case_share_dir
        comment = smb username is [%U]