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_umapfs | |
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_umapfs')
-rw-r--r-- | sbin/mount_umapfs/mount_umapfs.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sbin/mount_umapfs/mount_umapfs.c b/sbin/mount_umapfs/mount_umapfs.c index 82e3efb..06964bf 100644 --- a/sbin/mount_umapfs/mount_umapfs.c +++ b/sbin/mount_umapfs/mount_umapfs.c @@ -101,8 +101,6 @@ main(argc, argv) int ch, count, gnentries, mntflags, nentries; char *gmapfile, *mapfile, buf[20]; char source[MAXPATHLEN], target[MAXPATHLEN]; - struct vfsconf vfc; - int error; mntflags = 0; mapfile = gmapfile = NULL; @@ -227,17 +225,7 @@ main(argc, argv) args.gnentries = gnentries; args.gmapdata = gmapdata; - error = getvfsbyname("umapfs", &vfc); - if (error && vfsisloadable("umapfs")) { - if(vfsload("umapfs")) - err(1, "vfsload(umapfs)"); - endvfsent(); - error = getvfsbyname("umapfs", &vfc); - } - if (error) - errx(1, "umap filesystem is not available"); - - if (mount(vfc.vfc_name, argv[1], mntflags, &args)) + if (mount("umapfs", argv[1], mntflags, &args)) err(1, NULL); exit(0); } |