From owner-freebsd-hackers Wed Oct 23 10:47:15 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA00254 for hackers-outgoing; Wed, 23 Oct 1996 10:47:15 -0700 (PDT) Received: from mailgw.pa.aix.or.jp (mailgw.pa.aix.or.jp [202.32.119.40]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA00243 for ; Wed, 23 Oct 1996 10:47:11 -0700 (PDT) Received: from ppp.pa.aix.or.jp (ppp234039.aix.or.jp [202.32.234.39]) by mailgw.pa.aix.or.jp (8.7.5/pa00) with ESMTP id CAA19342 for ; Thu, 24 Oct 1996 02:47:09 +0900 Received: from localhost (localhost.magi.nerv.gov [127.0.0.1]) by ppp.pa.aix.or.jp (8.7.6/3.4W409/28/96) with ESMTP id CAA01101 for freebsd-hackers@freebsd.org; Thu, 24 Oct 1996 02:37:47 +0900 (JST) Message-Id: <199610231737.CAA01101@ppp.pa.aix.or.jp> To: freebsd-hackers@freebsd.org Subject: fsid in procfs X-Mailer: Mew version 1.06 on Emacs 19.28.1, Mule 2.3 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Oct_24_02:37:46_1996)--" Date: Thu, 24 Oct 1996 02:37:46 +0900 From: SAWADA Mizuki Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ----Next_Part(Thu_Oct_24_02:37:46_1996)-- Content-Type: Text/Plain; charset=us-ascii The function `procfs_getattr()' in procfs doesn't set the value of vap->va_fsid, so we cannot get valid information about procfs. And this patch will fix it. -- SAWADA Mizuki miz@pa.aix.or.jp ----Next_Part(Thu_Oct_24_02:37:46_1996)-- Content-Type: Text/Plain; charset=us-ascii *** procfs_vnops.c.orig Tue Sep 3 23:23:10 1996 --- procfs_vnops.c Thu Oct 24 01:18:01 1996 *************** *** 51,56 **** --- 51,57 ---- #include #include #include + #include #include #include #include *************** *** 351,356 **** --- 352,358 ---- vap->va_flags = 0; vap->va_blocksize = PAGE_SIZE; vap->va_bytes = vap->va_size = 0; + vap->va_fsid = ap->a_vp->v_mount->mnt_stat.f_fsid.val[0]; /* * If the process has exercised some setuid or setgid ----Next_Part(Thu_Oct_24_02:37:46_1996)----