summaryrefslogtreecommitdiffstats
path: root/sbin/mount_cd9660
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-22 22:17:02 +0000
committerwollman <wollman@FreeBSD.org>1994-09-22 22:17:02 +0000
commiteeef7952c3836dd1eb5e994695d5c745b6b51784 (patch)
treeeae3d93fb9be635a1496c02de15cdef92b491f86 /sbin/mount_cd9660
parentd4b42cfe457790ba8db25f68e68f7c056ddc69b5 (diff)
downloadFreeBSD-src-eeef7952c3836dd1eb5e994695d5c745b6b51784.zip
FreeBSD-src-eeef7952c3836dd1eb5e994695d5c745b6b51784.tar.gz
Automatically load NFS and a bevy of other filesystems.
Diffstat (limited to 'sbin/mount_cd9660')
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c
index c22901e..2dfe3e6 100644
--- a/sbin/mount_cd9660/mount_cd9660.c
+++ b/sbin/mount_cd9660/mount_cd9660.c
@@ -76,6 +76,7 @@ main(argc, argv)
struct iso_args args;
int ch, mntflags, opts;
char *dev, *dir;
+ struct vfsconf *vfc;
mntflags = opts = 0;
while ((ch = getopt(argc, argv, "ego:r")) != EOF)
@@ -117,7 +118,16 @@ main(argc, argv)
args.flags = opts;
- if (mount(MOUNT_CD9660, dir, mntflags, &args) < 0)
+ vfc = getvfsbyname("cd9660");
+ if(!vfc && vfsisloadable("cd9660")) {
+ if(vfsload("cd9660")) {
+ err(1, "vfsload(cd9660)");
+ }
+ endvfsent(); /* flush cache */
+ vfc = getvfsbyname("cd9660");
+ }
+
+ if (mount(vfc ? vfc->vfc_index : MOUNT_CD9660, dir, mntflags, &args) < 0)
err(1, NULL);
exit(0);
}
OpenPOWER on IntegriCloud