Date: Thu, 24 Oct 1996 02:37:46 +0900 From: SAWADA Mizuki <miz@pa.aix.or.jp> To: freebsd-hackers@freebsd.org Subject: fsid in procfs Message-ID: <199610231737.CAA01101@ppp.pa.aix.or.jp>
next in thread | raw e-mail | index | archive | help
----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 <sys/proc.h> #include <sys/unistd.h> #include <sys/vnode.h> + #include <sys/mount.h> #include <sys/namei.h> #include <sys/malloc.h> #include <sys/dirent.h> *************** *** 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)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610231737.CAA01101>