summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/portal
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-07-02 16:29:47 +0000
committerphk <phk@FreeBSD.org>1999-07-02 16:29:47 +0000
commitb6d067fe706d7df16489c3e6138e2c68c483bd7c (patch)
tree6dd5d101ce37a738d8b0f531e7273f744862ab5d /sys/miscfs/portal
parent60d229e604f6fdbe9921b44b59b82b2469286d78 (diff)
downloadFreeBSD-src-b6d067fe706d7df16489c3e6138e2c68c483bd7c.zip
FreeBSD-src-b6d067fe706d7df16489c3e6138e2c68c483bd7c.tar.gz
Make sure that stat(2) and friends always return a valid st_dev field.
Pseudo-FS need not fill in the va_fsid anymore, the syscall code will use the first half of the fsid, which now looks like a udev_t with major 255.
Diffstat (limited to 'sys/miscfs/portal')
-rw-r--r--sys/miscfs/portal/portal_vnops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c
index 819d636..ad96332 100644
--- a/sys/miscfs/portal/portal_vnops.c
+++ b/sys/miscfs/portal/portal_vnops.c
@@ -35,7 +35,7 @@
*
* @(#)portal_vnops.c 8.14 (Berkeley) 5/21/95
*
- * $Id: portal_vnops.c,v 1.34 1998/12/07 21:58:32 archie Exp $
+ * $Id: portal_vnops.c,v 1.35 1999/01/12 11:49:30 eivind Exp $
*/
/*
@@ -449,7 +449,6 @@ portal_getattr(ap)
vattr_null(vap);
vap->va_uid = 0;
vap->va_gid = 0;
- vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];
vap->va_size = DEV_BSIZE;
vap->va_blocksize = DEV_BSIZE;
nanotime(&vap->va_atime);
OpenPOWER on IntegriCloud