limit st_dev to 15 bits set for nfs filesystems

This commit is contained in:
deraadt 1994-07-02 04:51:18 +00:00
parent 801d30952a
commit 318b9c6b63
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_subr.c,v 1.32 1994/06/29 06:33:59 cgd Exp $ */ /* $NetBSD: vfs_subr.c,v 1.33 1994/07/02 04:51:18 deraadt Exp $ */
/* /*
* Copyright (c) 1989, 1993 * Copyright (c) 1989, 1993
@ -198,7 +198,7 @@ getnewfsid(mp, mtype)
mp->mnt_stat.f_fsid.val[1] = mtype; mp->mnt_stat.f_fsid.val[1] = mtype;
if (xxxfs_mntid == 0) if (xxxfs_mntid == 0)
++xxxfs_mntid; ++xxxfs_mntid;
tfsid.val[0] = makedev(nblkdev + mtype, xxxfs_mntid); tfsid.val[0] = makedev((nblkdev + mtype) & 0xff, xxxfs_mntid);
tfsid.val[1] = mtype; tfsid.val[1] = mtype;
if (mountlist.tqh_first != NULL) { if (mountlist.tqh_first != NULL) {
while (getvfs(&tfsid)) { while (getvfs(&tfsid)) {