diff options
author | Maxime Henrion <mux@FreeBSD.org> | 2002-08-03 16:03:21 +0000 |
---|---|---|
committer | Maxime Henrion <mux@FreeBSD.org> | 2002-08-03 16:03:21 +0000 |
commit | 526ba6d32b79b714f8c5cd54892d80b60b24f9a4 (patch) | |
tree | 767cb1c371d1f8a92f24d3039b035dc1af421bc6 /sbin/mount_msdosfs/mount_msdosfs.c | |
parent | 5740f28044897562fedf09bea0c6a547aa3701d4 (diff) | |
download | src-526ba6d32b79b714f8c5cd54892d80b60b24f9a4.tar.gz src-526ba6d32b79b714f8c5cd54892d80b60b24f9a4.zip |
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.
Notes
Notes:
svn path=/head/; revision=101270
Diffstat (limited to 'sbin/mount_msdosfs/mount_msdosfs.c')
-rw-r--r-- | sbin/mount_msdosfs/mount_msdosfs.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sbin/mount_msdosfs/mount_msdosfs.c b/sbin/mount_msdosfs/mount_msdosfs.c index b70b5b1ff9c1..187dc13304c9 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); |