From eeef7952c3836dd1eb5e994695d5c745b6b51784 Mon Sep 17 00:00:00 2001 From: wollman Date: Thu, 22 Sep 1994 22:17:02 +0000 Subject: Automatically load NFS and a bevy of other filesystems. --- sbin/mount_portal/mount_portal.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sbin/mount_portal') diff --git a/sbin/mount_portal/mount_portal.c b/sbin/mount_portal/mount_portal.c index ae5345d..d88a38d 100644 --- a/sbin/mount_portal/mount_portal.c +++ b/sbin/mount_portal/mount_portal.c @@ -94,6 +94,7 @@ main(argc, argv) char *mountpt; int mntflags = 0; char tag[32]; + struct vfsconf *vfc; qelem q; int rc; @@ -156,7 +157,15 @@ main(argc, argv) sprintf(tag, "portal:%d", getpid()); args.pa_config = tag; - rc = mount(MOUNT_PORTAL, mountpt, mntflags, &args); + vfc = getvfsbyname("portal"); + if(!vfc && vfsisloadable("portal")) { + if(vfsload("portal")) + err(1, "vfsload(portal)"); + endvfsent(); /* flush cache */ + vfc = getvfsbyname("portal"); + } + + rc = mount(vfc ? vfc->vfc_index : MOUNT_PORTAL, mountpt, mntflags, &args); if (rc < 0) err(1, NULL); -- cgit v1.1