The function `procfs_getattr()' in procfs doesn't set the value of

vap->va_fsid, so we cannot get valid information about procfs.

Submitted by:   SAWADA Mizuki miz@pa.aix.or.jp
Reviewed by:    phk
PR:     1654
This commit is contained in:
Poul-Henning Kamp 1999-11-17 21:33:25 +00:00
parent b08210f5fa
commit 3cf5d0fd07
2 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@
#include <sys/proc.h>
#include <sys/signalvar.h>
#include <sys/vnode.h>
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/dirent.h>
#include <machine/reg.h>
@ -470,6 +471,7 @@ procfs_getattr(ap)
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];
/*
* Make all times be current TOD.

View File

@ -52,6 +52,7 @@
#include <sys/proc.h>
#include <sys/signalvar.h>
#include <sys/vnode.h>
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/dirent.h>
#include <machine/reg.h>
@ -470,6 +471,7 @@ procfs_getattr(ap)
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];
/*
* Make all times be current TOD.