Module Name:    src
Committed By:   hannken
Date:           Sat Oct 30 09:53:47 UTC 2021

Modified Files:
        src/tests/fs/tmpfs: t_link.sh

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/fs/tmpfs/t_link.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/fs/tmpfs/t_link.sh
diff -u src/tests/fs/tmpfs/t_link.sh:1.5 src/tests/fs/tmpfs/t_link.sh:1.6
--- src/tests/fs/tmpfs/t_link.sh:1.5	Sun Nov  7 17:51:18 2010
+++ src/tests/fs/tmpfs/t_link.sh	Sat Oct 30 09:53:47 2021
@@ -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_body() {
 	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

Reply via email to