Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/vfs After converting msdosfs_rename() to use genfs_...



details:   https://anonhg.NetBSD.org/src/rev/b45158e354ad
branches:  trunk
changeset: 990009:b45158e354ad
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Oct 23 17:43:08 2021 +0000

description:
After converting msdosfs_rename() to use genfs_sane_rename() the
MSDOS tests should pass.

Tested on QEMU/nvmm archs i386 and amd64.

Should resolve PR kern/43626 (directory renaming more than a little racy)

diffstat:

 tests/fs/vfs/t_renamerace.c |  37 +------------------------------------
 1 files changed, 1 insertions(+), 36 deletions(-)

diffs (79 lines):

diff -r b1c73e1b11a7 -r b45158e354ad tests/fs/vfs/t_renamerace.c
--- a/tests/fs/vfs/t_renamerace.c       Sat Oct 23 16:58:17 2021 +0000
+++ b/tests/fs/vfs/t_renamerace.c       Sat Oct 23 17:43:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_renamerace.c,v 1.41 2021/06/16 23:58:07 riastradh Exp $      */
+/*     $NetBSD: t_renamerace.c,v 1.42 2021/10/23 17:43:08 hannken Exp $        */
 
 /*
  * Modified for rump and atf from a program supplied
@@ -183,19 +183,6 @@
 
        if (FSTYPE_UDF(tc))
                atf_tc_fail("race did not trigger this time");
-
-       if (FSTYPE_MSDOS(tc)) {
-               atf_tc_expect_fail("PR kern/43626");
-               /*
-                * XXX: race does not trigger every time at least
-                * on amd64/qemu.
-                */
-               if (msdosfs_fstest_unmount(tc, mp, 0) != 0) {
-                       rump_pub_vfs_mount_print(mp, 1);
-                       atf_tc_fail_errno("unmount failed");
-               }
-               atf_tc_fail("race did not trigger this time");
-       }
 }
 
 static void
@@ -210,10 +197,6 @@
        if (FSTYPE_UDF(tc))
                atf_tc_expect_fail("PR kern/53865");
 
-       /* XXX: msdosfs also sometimes hangs */
-       if (FSTYPE_MSDOS(tc))
-               atf_tc_expect_signal(-1, "PR kern/43626");
-
        RZ(rump_pub_lwproc_rfork(RUMP_RFCFDG));
        RL(wrkpid = rump_sys_getpid());
 
@@ -230,13 +213,6 @@
 
        if (FSTYPE_UDF(tc))
                atf_tc_fail("race did not trigger this time");
-
-       /*
-        * Doesn't always trigger when run on a slow backend
-        * (i.e. not on tmpfs/mfs).  So do the usual kludge.
-        */
-       if (FSTYPE_MSDOS(tc))
-               abort();
 }
 
 static void
@@ -257,10 +233,6 @@
        if (FSTYPE_UDF(tc))
                atf_tc_expect_fail("sometimes fails with ENOSPC, PR kern/56253");
 
-       /* XXX: msdosfs also sometimes hangs */
-       if (FSTYPE_MSDOS(tc))
-               atf_tc_expect_signal(-1, "PR kern/43626");
-
        RZ(rump_pub_lwproc_rfork(RUMP_RFCFDG));
        RL(wrkpid = rump_sys_getpid());
 
@@ -281,13 +253,6 @@
 
        if (FSTYPE_UDF(tc))
                atf_tc_fail("PR kern/56253 did not trigger this time");
-
-       /*
-        * Doesn't always trigger when run on a slow backend
-        * (i.e. not on tmpfs/mfs).  So do the usual kludge.
-        */
-       if (FSTYPE_MSDOS(tc))
-               abort();
 }
 
 ATF_TC_FSAPPLY(renamerace, "rename(2) race with file unlinked mid-operation");



Home | Main Index | Thread Index | Old Index