diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-22 22:17:02 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-22 22:17:02 +0000 |
commit | eeef7952c3836dd1eb5e994695d5c745b6b51784 (patch) | |
tree | eae3d93fb9be635a1496c02de15cdef92b491f86 /sbin/mount_lfs | |
parent | d4b42cfe457790ba8db25f68e68f7c056ddc69b5 (diff) | |
download | FreeBSD-src-eeef7952c3836dd1eb5e994695d5c745b6b51784.zip FreeBSD-src-eeef7952c3836dd1eb5e994695d5c745b6b51784.tar.gz |
Automatically load NFS and a bevy of other filesystems.
Diffstat (limited to 'sbin/mount_lfs')
-rw-r--r-- | sbin/mount_lfs/mount_lfs.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sbin/mount_lfs/mount_lfs.c b/sbin/mount_lfs/mount_lfs.c index 374c930..b4e4d2e 100644 --- a/sbin/mount_lfs/mount_lfs.c +++ b/sbin/mount_lfs/mount_lfs.c @@ -72,6 +72,7 @@ main(argc, argv) struct ufs_args args; int ch, mntflags, noclean; char *fs_name, *options; + struct vfsconf *vfc; options = NULL; mntflags = noclean = 0; @@ -109,7 +110,15 @@ main(argc, argv) else args.export.ex_flags = 0; - if (mount(MOUNT_LFS, fs_name, mntflags, &args)) + vfc = getvfsbyname("lfs"); + if(!vfc && vfsisloadable("lfs")) { + if(vfsload("lfs")) + err(1, "vfsload(lfs)"); + endvfsent(); /* flush cache */ + vfc = getvfsbyname("lfs"); + } + + if (mount(vfc ? vfc->vfc_index : MOUNT_LFS, fs_name, mntflags, &args)) err(1, NULL); if (!noclean) |