diff options
author | mux <mux@FreeBSD.org> | 2002-08-03 16:03:21 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2002-08-03 16:03:21 +0000 |
commit | f72ce2f014de34b8615290f44d408be01938dd02 (patch) | |
tree | 767cb1c371d1f8a92f24d3039b035dc1af421bc6 /sbin/mount | |
parent | 3b6651b983ed2691da3bbc5b5c4cdc8cf4c65900 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sbin/mount/mount_ufs.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c index dee0ddf..f15ef9a 100644 --- a/sbin/mount/mount_ufs.c +++ b/sbin/mount/mount_ufs.c @@ -79,8 +79,6 @@ mount_ufs(argc, argv) struct ufs_args args; int ch, mntflags; char *fs_name; - struct vfsconf vfc; - int error = 0; mntflags = 0; optind = optreset = 1; /* Reset for parse of new argv. */ @@ -109,21 +107,7 @@ mount_ufs(argc, argv) else args.export.ex_flags = 0; - error = getvfsbyname("ufs", &vfc); - if (error && vfsisloadable("ufs")) { - if (vfsload("ufs")) { - warn("vfsload(ufs)"); - return (1); - } - endvfsent(); /* flush old table */ - error = getvfsbyname("ufs", &vfc); - } - if (error) { - warnx("ufs filesystem is not available"); - return (1); - } - - if (mount(vfc.vfc_name, fs_name, mntflags, &args) < 0) { + if (mount("ufs", fs_name, mntflags, &args) < 0) { switch (errno) { case EMFILE: warnx("%s on %s: mount table full", |