Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/tmpfs With the recent "centralize vnode kevent hand...



details:   https://anonhg.NetBSD.org/src/rev/4101023d7b18
branches:  trunk
changeset: 990550:4101023d7b18
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Oct 30 09:53:47 2021 +0000

description:
With the recent "centralize vnode kevent handling" kevent(2) no
longer raises NOTE_LINK when removing a hard linked node.

It now behaves as FreeBSD and raises NOTE_DELETE.

Adapt the test to the new behaviour.

diffstat:

 tests/fs/tmpfs/t_link.sh |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 9b09b06396e0 -r 4101023d7b18 tests/fs/tmpfs/t_link.sh
--- a/tests/fs/tmpfs/t_link.sh  Sat Oct 30 09:51:22 2021 +0000
+++ b/tests/fs/tmpfs/t_link.sh  Sat Oct 30 09:53:47 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_link.sh,v 1.5 2010/11/07 17:51:18 jmmv Exp $
+# $NetBSD: t_link.sh,v 1.6 2021/10/30 09:53:47 hannken Exp $
 #
 # Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -109,9 +109,7 @@
        kqueue_check dir NOTE_WRITE
 
        echo 'rm dir/a' | kqueue_monitor 2 dir dir/b
-       # XXX According to the (short) kqueue(2) documentation, the following
-       # should raise a NOTE_LINK but FFS raises a NOTE_DELETE...
-       kqueue_check dir/b NOTE_LINK
+       kqueue_check dir/b NOTE_DELETE
        kqueue_check dir NOTE_WRITE
        atf_check -s eq:0 -o empty -e empty rm dir/b
        atf_check -s eq:0 -o empty -e empty rmdir dir



Home | Main Index | Thread Index | Old Index