diff options
author | phk <phk@FreeBSD.org> | 2004-12-04 09:57:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-04 09:57:38 +0000 |
commit | 3bb4ccf412ea455ecc118cc703dbfc6c71991b79 (patch) | |
tree | f69c9762d6270c9b5f374618186f40aa02401f1a /sys/fs/ntfs/ntfs_vfsops.c | |
parent | a49cb2018c3c13fe26975529d19fb9f988bd708b (diff) | |
download | FreeBSD-src-3bb4ccf412ea455ecc118cc703dbfc6c71991b79.zip FreeBSD-src-3bb4ccf412ea455ecc118cc703dbfc6c71991b79.tar.gz |
Remove embryonic rootfs mounting facility.
In the near future rootfs mounting will not require special handling
in the filesystems.
Diffstat (limited to 'sys/fs/ntfs/ntfs_vfsops.c')
-rw-r--r-- | sys/fs/ntfs/ntfs_vfsops.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c index 23c920e..e8b8599 100644 --- a/sys/fs/ntfs/ntfs_vfsops.c +++ b/sys/fs/ntfs/ntfs_vfsops.c @@ -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 |