]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Add some hardlinks for testing SMB3 posix extensions
authorAndreas Schneider <asn@samba.org>
Thu, 27 Nov 2025 15:33:28 +0000 (16:33 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 9 Dec 2025 18:30:34 +0000 (18:30 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15960

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/target/Samba3.pm

index ee1d8802223d759fdd64dd15e191f063c3ee38fe..dc6f7314a5d9f5252867f96de1536c2267aea6ee 100755 (executable)
@@ -2881,6 +2881,14 @@ sub provision($$)
        ##
        symlink "$widelinks_shrdir", "$widelinks_shrdir/dot";
 
+       ##
+       ## Create test file with hardlinks for posix extensions testing with
+       ## [smb3_posix_share]
+       ##
+       create_file_chmod("$shrdir/posix_test_original.txt", 0644) or return undef;
+       link "$shrdir/posix_test_original.txt", "$shrdir/posix_test_hardlink1.txt";
+       link "$shrdir/posix_test_original.txt", "$shrdir/posix_test_hardlink2.txt";
+
        my $conffile="$libdir/server.conf";
        my $dfqconffile="$libdir/dfq.conf";
        my $errorinjectconf="$libdir/error_inject.conf";