Remove embryonic rootfs mounting facility.

In the near future rootfs mounting will not require special handling
in the filesystems.
This commit is contained in:
Poul-Henning Kamp 2004-12-04 09:57:38 +00:00
parent cc7f976211
commit 91e691c2d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138367

View File

@ -107,38 +107,10 @@ ntfs_omount (
{
size_t size;
int err = 0;
struct vnode *devvp, *rootvp;
struct vnode *devvp;
struct ntfs_args args;
struct nameidata ndp;
if (mp->mnt_flag & MNT_ROOTFS) {
/*
***
* Mounting root filesystem
***
*/
/* Get vnode for root device*/
if( bdevvp( rootdev, &rootvp))
panic("ntfs_mountroot: can't setup bdevvp for root");
/*
* FS specific handling
*/
mp->mnt_flag |= MNT_RDONLY; /* XXX globally applicable?*/
/*
* Attempt mount
*/
if( ( err = ntfs_mountfs(rootvp, mp, &args, td)) != 0) {
/* fs specific cleanup (if any)*/
goto error_1;
}
goto dostatfs; /* success*/
}
/*
***
* Mounting non-root filesystem or updating a filesystem
@ -238,7 +210,6 @@ ntfs_omount (
goto error_2;
}
dostatfs:
/*
* Initialize FS stat information in mount struct; uses both
* mp->mnt_stat.f_mntonname and mp->mnt_stat.f_mntfromname