Date: Thu, 19 Sep 1996 22:57:51 -0700 (PDT) From: miz@pa.aix.or.jp To: freebsd-gnats-submit@freebsd.org Subject: kern/1654: In procfs, vattr doesn't contain correct value of `va_fsid'. Message-ID: <199609200557.WAA10075@freefall.freebsd.org> Resent-Message-ID: <199609200610.XAA16193@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609200557.WAA10075>