diff options
author | phk <phk@FreeBSD.org> | 1999-11-26 20:08:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-26 20:08:44 +0000 |
commit | ccda399c7212987131af26c9939c9d18ff81bf06 (patch) | |
tree | da5d1958e9ff3ca5620bb5bef78b93937354a8c0 /sys/kern/vfs_conf.c | |
parent | c7fbb8b2a29b3c0b3a8336742840797f3fb94657 (diff) | |
download | FreeBSD-src-ccda399c7212987131af26c9939c9d18ff81bf06.zip FreeBSD-src-ccda399c7212987131af26c9939c9d18ff81bf06.tar.gz |
Retire MFS_ROOT and MFS_ROOT_SIZE options from the MFS implementation.
Add MD_ROOT and MD_ROOT_SIZE options to the md driver.
Make the md driver handle MFS_ROOT and MFS_ROOT_SIZE options for compatibility.
Add md driver to GENERIC, PCCARD and LINT.
This is a cleanup which removes the need for some of the worse hacks in
MFS: We really want to have a rootvnode but MFS on a preloaded image
doesn't really have one. md is a true device, so it is less trouble.
This has been tested with make release, and if people remember to add
the "md" pseudo-device to their kernels, PicoBSD should be just fine
as well. If people have no other use for MFS, it can be removed from
the kernel.
Diffstat (limited to 'sys/kern/vfs_conf.c')
-rw-r--r-- | sys/kern/vfs_conf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c index 57d994c..e63343c 100644 --- a/sys/kern/vfs_conf.c +++ b/sys/kern/vfs_conf.c @@ -197,6 +197,10 @@ vfs_mountroot_try(char *mountfrom) if ((path[0] != 0) && setrootbyname(path)) printf("setrootbyname failed\n"); + /* If the root device is a type "memory disk", mount RW */ + if (devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK)) + mp->mnt_flag &= ~MNT_RDONLY; + strcpy(mp->mnt_stat.f_mntfromname, path); error = VFS_MOUNT(mp, NULL, NULL, NULL, curproc); |