overlay/073: test with nfs_export being off
authorMurphy Zhou <jencce.kernel@gmail.com>
Fri, 11 Sep 2020 02:18:13 +0000 (10:18 +0800)
committerEryu Guan <guaneryu@gmail.com>
Tue, 20 Oct 2020 05:36:03 +0000 (13:36 +0800)
When nfs_export is enabled, the link count of upper dir
objects are more then the expected number in this testcase.
Because extra index entries are linked to upper inodes.

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/overlay/073

index 55cafa0514e51502cd315089210b4cd551962d88..e4203295a4a30ea4faf84d5cc4b2ac763c6266b0 100755 (executable)
@@ -98,7 +98,9 @@ run_test_case()
 {
        _scratch_mkfs
        make_lower_files ${1}
-       _scratch_mount -o "index=on"
+       # There will be extra hard links with nfs_export enabled which
+       # is expected. Turn it off explicitly to avoid the false alarm.
+       _scratch_mount -o "index=on,nfs_export=off"
        make_whiteout_files
        check_whiteout_files ${1} ${2}
        _scratch_unmount