summaryrefslogtreecommitdiffstats
path: root/sbin/mount_msdosfs/mount_msdosfs.c
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-08-03 16:03:21 +0000
committermux <mux@FreeBSD.org>2002-08-03 16:03:21 +0000
commitf72ce2f014de34b8615290f44d408be01938dd02 (patch)
tree767cb1c371d1f8a92f24d3039b035dc1af421bc6 /sbin/mount_msdosfs/mount_msdosfs.c
parent3b6651b983ed2691da3bbc5b5c4cdc8cf4c65900 (diff)
downloadFreeBSD-src-f72ce2f014de34b8615290f44d408be01938dd02.zip
FreeBSD-src-f72ce2f014de34b8615290f44d408be01938dd02.tar.gz
Now that the kernel is able to load modules itself,
remove all the code which was trying to do so. This code was nasty in several ways, it was hiding the kernel bug where the kernel was unable to properly load a module, and it was quitting if it wasn't able to load the module. The consequence is that an ABI breakage of the vfsconf API would have broken *every* mount utility.
Diffstat (limited to 'sbin/mount_msdosfs/mount_msdosfs.c')
-rw-r--r--sbin/mount_msdosfs/mount_msdosfs.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sbin/mount_msdosfs/mount_msdosfs.c b/sbin/mount_msdosfs/mount_msdosfs.c
index b70b5b1..187dc13 100644
--- a/sbin/mount_msdosfs/mount_msdosfs.c
+++ b/sbin/mount_msdosfs/mount_msdosfs.c
@@ -88,9 +88,8 @@ main(argc, argv)
{
struct msdosfs_args args;
struct stat sb;
- int c, error, mntflags, set_gid, set_uid, set_mask;
+ int c, mntflags, set_gid, set_uid, set_mask;
char *dev, *dir, mntpath[MAXPATHLEN];
- struct vfsconf vfc;
mntflags = set_gid = set_uid = set_mask = 0;
(void)memset(&args, '\0', sizeof(args));
@@ -173,17 +172,7 @@ main(argc, argv)
args.mask = sb.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
}
- error = getvfsbyname("msdosfs", &vfc);
- if (error && vfsisloadable("msdosfs")) {
- if (vfsload("msdosfs"))
- err(EX_OSERR, "vfsload(msdosfs)");
- endvfsent(); /* clear cache */
- error = getvfsbyname("msdosfs", &vfc);
- }
- if (error)
- errx(EX_OSERR, "msdos filesystem is not available");
-
- if (mount(vfc.vfc_name, mntpath, mntflags, &args) < 0)
+ if (mount("msdosfs", mntpath, mntflags, &args) < 0)
err(EX_OSERR, "%s", dev);
exit (0);
OpenPOWER on IntegriCloud