NetBSD Problem Report #38778
From njoly@lanfeust.sis.pasteur.fr Wed May 28 12:44:35 2008
Return-Path: <njoly@lanfeust.sis.pasteur.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 2034E63B8BC
for <gnats-bugs@gnats.NetBSD.org>; Wed, 28 May 2008 12:44:35 +0000 (UTC)
Message-Id: <20080528124433.35EC86B469@lanfeust.sis.pasteur.fr>
Date: Wed, 28 May 2008 14:44:33 +0200 (CEST)
From: njoly@pasteur.fr
Reply-To: njoly@pasteur.fr
To: gnats-bugs@gnats.NetBSD.org
Subject: /kern files do not show up anymore after quite some time
X-Send-Pr-Version: 3.95
>Number: 38778
>Category: kern
>Synopsis: /kern files do not show up anymore after quite some time
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 28 12:45:00 +0000 2008
>Closed-Date: Sat Jan 17 23:19:07 +0000 2009
>Last-Modified: Wed Feb 12 20:00:02 +0000 2020
>Originator: Nicolas Joly
>Release: NetBSD 4.99.63
>Organization:
Biological Software and Databanks.
Institut Pasteur, Paris.
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 4.99.63 NetBSD 4.99.63 (LANFEUST) #16: Wed May 28 13:08:09 CEST 2008 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
On a freshly booted system there is no problems to see files under /kern;
after quite some time/use (cvs up src + kerne build), they do not show
up anymore but remain available.
njoly@lanfeust [NetBSD/src]> mount -t kernfs -v
kernfs on /kern type kernfs (local, fsid: 0x8b01/0x1d28b, reads: sync 0 async 0, writes: sync 0 async 0)
njoly@lanfeust [NetBSD/src]> ls -l /kern
total 63
-r--r--r-- 1 root wheel 11 May 28 13:55 boottime
-r--r--r-- 1 root wheel 264 May 28 14:04 copyright
-rw-r--r-- 1 root wheel 24 May 28 14:04 hostname
-r--r--r-- 1 root wheel 4 May 28 14:04 hz
-r--r--r-- 1 root wheel 11 May 28 14:04 loadavg
-r--r--r-- 1 root wheel 32736 May 28 14:04 msgbuf
-r--r--r-- 1 root wheel 5 May 28 14:04 pagesize
-r--r--r-- 1 root wheel 7 May 28 14:04 physmem
brw-r----- 1 root operator 0, 0 Mar 21 2005 rootdev
crw-r----- 1 root operator 3, 0 Nov 4 2005 rrootdev
-r--r--r-- 1 root wheel 18 May 28 14:04 time
-r--r--r-- 1 root wheel 152 May 28 14:04 version
njoly@lanfeust [NetBSD/src]> cvs -q up
[...]
njoly@lanfeust [NetBSD/src]> ./build.sh -Uu -m amd64 kernel=LANFEUST
[...]
njoly@lanfeust [NetBSD/src]> ls -l /kern
njoly@lanfeust [NetBSD/src]> ls -l /kern/loadavg
-r--r--r-- 1 root wheel 13 May 28 14:39 /kern/loadavg
njoly@lanfeust [NetBSD/src]> cat /kern/loadavg
0 0 109 2048
Here is the corresponding trace:
14255 1 ls CALL open(0x7f7ffd803400,4,0)
14255 1 ls NAMI "/kern"
14255 1 ls RET open 4
[...]
14255 1 ls CALL lseek(4,0,0,1)
14255 1 ls RET lseek 0
14255 1 ls CALL __getdents30(4,0x7f7ffd813000,0x1000)
14255 1 ls RET __getdents30 -1 errno 9 Bad file descriptor
14255 1 ls CALL close(4)
14255 1 ls RET close 0
This is mostly from a GENERIC+DIAGNOSTIC kernel, with a few other devices.
>How-To-Repeat:
ls -l /kern
[do some other stuff ...]
ls -l /kern
>Fix:
n/a
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Sat, 17 Jan 2009 23:19:07 +0000
State-Changed-Why:
Duplicate of 38265.
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/38778 CVS commit: src/sys/miscfs/kernfs
Date: Tue, 4 Feb 2020 04:19:25 +0000
Module Name: src
Committed By: riastradh
Date: Tue Feb 4 04:19:24 UTC 2020
Modified Files:
src/sys/miscfs/kernfs: kernfs.h kernfs_vfsops.c kernfs_vnops.c
Log Message:
Use specfs vnops for specnodes in kernfs.
While here, don't filter out rootdev and rrootdev merely because
they're not cached.
Fixes the elusive /kern/rootdev and /kern/rrootdev nodes, which only
appeared sometimes when they felt like it, and fixes operations on
/kern/rootdev and /kern/rrootdev always returning EOPNOTSUPP.
We didn't seem to have a single PR for these issues but the following
PRs are all relevant:
PR bin/13564
PR kern/38265
PR kern/38778
PR kern/45974
XXX pullup-9, pullup-8, pullup-7, pullup-6, pullup-5, pullup-4, pullup-3, pullup-2, pullup-1.4T...
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/miscfs/kernfs/kernfs.h
cvs rdiff -u -r1.97 -r1.98 src/sys/miscfs/kernfs/kernfs_vfsops.c
cvs rdiff -u -r1.162 -r1.163 src/sys/miscfs/kernfs/kernfs_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/38778 CVS commit: [netbsd-9] src/sys/miscfs/kernfs
Date: Wed, 12 Feb 2020 19:59:23 +0000
Module Name: src
Committed By: martin
Date: Wed Feb 12 19:59:22 UTC 2020
Modified Files:
src/sys/miscfs/kernfs [netbsd-9]: kernfs.h kernfs_vfsops.c
kernfs_vnops.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #702):
sys/miscfs/kernfs/kernfs_vfsops.c: revision 1.98
sys/miscfs/kernfs/kernfs_vnops.c: revision 1.163
sys/miscfs/kernfs/kernfs.h: revision 1.43
Use specfs vnops for specnodes in kernfs.
While here, don't filter out rootdev and rrootdev merely because
they're not cached.
Fixes the elusive /kern/rootdev and /kern/rrootdev nodes, which only
appeared sometimes when they felt like it, and fixes operations on
/kern/rootdev and /kern/rrootdev always returning EOPNOTSUPP.
We didn't seem to have a single PR for these issues but the following
PRs are all relevant:
PR bin/13564
PR kern/38265
PR kern/38778
PR kern/45974
XXX pullup-9, pullup-8, pullup-7, pullup-6, pullup-5, pullup-4, pullup-3, p=
ullup-2, pullup-1.4T...
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.40.32.1 src/sys/miscfs/kernfs/kernfs.h
cvs rdiff -u -r1.96 -r1.96.18.1 src/sys/miscfs/kernfs/kernfs_vfsops.c
cvs rdiff -u -r1.160.4.1 -r1.160.4.2 src/sys/miscfs/kernfs/kernfs_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.