From b6d067fe706d7df16489c3e6138e2c68c483bd7c Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 2 Jul 1999 16:29:47 +0000 Subject: 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. --- sys/miscfs/union/union_vnops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/miscfs/union/union_vnops.c') diff --git a/sys/miscfs/union/union_vnops.c b/sys/miscfs/union/union_vnops.c index 6b9681c..25d2dfd 100644 --- a/sys/miscfs/union/union_vnops.c +++ b/sys/miscfs/union/union_vnops.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * @(#)union_vnops.c 8.32 (Berkeley) 6/23/95 - * $Id: union_vnops.c,v 1.60 1999/01/27 22:42:08 dillon Exp $ + * $Id: union_vnops.c,v 1.61 1999/06/16 23:27:43 mckusick Exp $ */ #include @@ -800,7 +800,6 @@ union_getattr(ap) if ((vap != ap->a_vap) && (vap->va_type == VDIR)) ap->a_vap->va_nlink += vap->va_nlink; - ap->a_vap->va_fsid = ap->a_vp->v_mount->mnt_stat.f_fsid.val[0]; return (0); } -- cgit v1.1