From owner-freebsd-bugs Thu Sep 19 23:10:16 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA16224 for bugs-outgoing; Thu, 19 Sep 1996 23:10:16 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA16193; Thu, 19 Sep 1996 23:10:13 -0700 (PDT) Resent-Date: Thu, 19 Sep 1996 23:10:13 -0700 (PDT) Resent-Message-Id: <199609200610.XAA16193@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:"from orion.webspan.net (root@orion.webspan.net [206.154.70.41]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA13381 for" ; Thu, 19 Sep 1996 23:04:33.-0700 (PDT) Received: from localhost (gpalmer@localhost [127.0.0.1]) by orion.webspan.net (8.7.5/8.6.12) with SMTP id CAA03463 for ; Fri, 20 Sep 1996 02:04:31 -0400 (EDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) by orion.webspan.net (8.7.5/8.6.12) with ESMTP id BAA02542 for ; Fri, 20 Sep 1996 01:58:01 -0400 (EDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA10075; Thu, 19 Sep 1996 22:57:51 -0700 (PDT) Message-Id: <199609200557.WAA10075@freefall.freebsd.org> Date: Thu, 19 Sep 1996 22:57:51 -0700 (PDT) From: miz@pa.aix.or.jp To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/1654: In procfs, vattr doesn't contain correct value of `va_fsid'. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1654 >Category: kern >Synopsis: In procfs, vattr doesn't contain correct value of `va_fsid'. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 19 23:10:07 PDT 1996 >Last-Modified: >Originator: SAWADA Mizuki >Organization: University of Electro Communications >Release: FreeBSD 2.2-960612-SNAP i386 >Environment: >Description: The function `procfs_getattr()' in procfs doesn't set the value of vap->va_fsid, so we cannot get valid information about procfs. >How-To-Repeat: For example... # mount -t procfs /proc /proc # mount -t procfs /proc /mnt # umount /mnt # mount /dev/wd0a on / (local) mfs:20 on /tmp (asynchronous, local) /dev/wd0e on /usr (local) /dev/wd0f on /home (local) kernfs on /kern (local, read-only) procfs on /mnt (local) >Fix: Add this line to the function `procfs_getattr()' (in procfs/procfs_vnops.c): vap->va_fsid = pfs->pfs_vnode->v_mount->mnt_stat.f_fsid.val[0]; >Audit-Trail: >Unformatted: