diff options
author | phk <phk@FreeBSD.org> | 2004-11-09 23:38:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-11-09 23:38:10 +0000 |
commit | a633563324cdd89b7d31176d383ed8f045f1297f (patch) | |
tree | 57b26def5f4997cd828474706f539c4304971d7c /sys/ufs | |
parent | 64bf081bc3c2a3050d38acdb24ae1437a3a9346f (diff) | |
download | FreeBSD-src-a633563324cdd89b7d31176d383ed8f045f1297f.zip FreeBSD-src-a633563324cdd89b7d31176d383ed8f045f1297f.tar.gz |
Use mount flags instead of NULL path to detect root filesystem mount.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 7939231..d3fe003 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -172,7 +172,7 @@ ffs_omount(struct mount *mp, char *path, caddr_t data, struct thread *td) /* * Use NULL path to indicate we are mounting the root filesystem. */ - if (path == NULL) { + if ((mp->mnt_flag & MNT_ROOTFS) && mp->mnt_data == NULL) { if ((error = bdevvp(rootdev, &rootvp))) { printf("ffs_mountroot: can't find rootvp\n"); return (error); |