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 /usr.sbin/mount_portalfs | |
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 'usr.sbin/mount_portalfs')
-rw-r--r-- | usr.sbin/mount_portalfs/mount_portalfs.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.sbin/mount_portalfs/mount_portalfs.c b/usr.sbin/mount_portalfs/mount_portalfs.c index c07eed9..baad22f 100644 --- a/usr.sbin/mount_portalfs/mount_portalfs.c +++ b/usr.sbin/mount_portalfs/mount_portalfs.c @@ -108,7 +108,6 @@ main(argc, argv) char mountpt[MAXPATHLEN]; int mntflags = 0; char tag[32]; - struct vfsconf vfc; mode_t um; qelem q; @@ -175,17 +174,7 @@ main(argc, argv) sprintf(tag, "portal:%d", getpid()); args.pa_config = tag; - error = getvfsbyname("portalfs", &vfc); - if (error && vfsisloadable("portalfs")) { - if (vfsload("portalfs")) - err(EX_OSERR, "vfsload(portalfs)"); - endvfsent(); - error = getvfsbyname("portalfs", &vfc); - } - if (error) - errx(EX_OSERR, "portal filesystem is not available"); - - rc = mount(vfc.vfc_name, mountpt, mntflags, &args); + rc = mount("portalfs", mountpt, mntflags, &args); if (rc < 0) err(1, NULL); |