summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/nullfs
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/nullfs
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/nullfs')
-rw-r--r--sys/miscfs/nullfs/null_vnops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/miscfs/nullfs/null_vnops.c b/sys/miscfs/nullfs/null_vnops.c
index fdcdc38..638b9ed 100644
--- a/sys/miscfs/nullfs/null_vnops.c
+++ b/sys/miscfs/nullfs/null_vnops.c
@@ -37,11 +37,11 @@
*
* Ancestors:
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
- * $Id: null_vnops.c,v 1.32 1999/01/28 00:57:50 dillon Exp $
+ * $Id: null_vnops.c,v 1.33 1999/06/16 23:27:38 mckusick Exp $
* ...and...
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
*
- * $Id: null_vnops.c,v 1.32 1999/01/28 00:57:50 dillon Exp $
+ * $Id: null_vnops.c,v 1.33 1999/06/16 23:27:38 mckusick Exp $
*/
/*
@@ -452,8 +452,6 @@ null_getattr(ap)
if ((error = null_bypass((struct vop_generic_args *)ap)) != 0)
return (error);
- /* Requires that arguments be restored. */
- ap->a_vap->va_fsid = ap->a_vp->v_mount->mnt_stat.f_fsid.val[0];
return (0);
}
OpenPOWER on IntegriCloud