kernel/tmpfs: Make compiling tmpfs into the kernel optional.
authorSascha Wildner <saw@online.de>
Thu, 12 Apr 2012 21:04:33 +0000 (23:04 +0200)
committerSascha Wildner <saw@online.de>
Thu, 12 Apr 2012 21:04:33 +0000 (23:04 +0200)
If the user wants to build a kernel without tmpfs built in,
allow it to him.

Our GENERIC configs have 'options TMPFS', but even if it
isn't loaded or built into the kernel, it will be kldloaded
upon mount_tmpfs(8) via vfsload(3).

This behavior is the same with our other file systems: the
module will be autoloaded at the first mount -t <type> if
it isn't either in-kernel or already loaded.

sys/conf/files

index ceff746..95622f0 100644 (file)
@@ -1639,11 +1639,10 @@ vfs/puffs/puffs_node.c          optional puffs
 vfs/puffs/puffs_subr.c         optional puffs
 vfs/puffs/puffs_vfsops.c       optional puffs
 vfs/puffs/puffs_vnops.c                optional puffs
-#tmpfs static filesystem for debugging should be marked as optional tmpfs
-vfs/tmpfs/tmpfs_fifoops.c      standard
-vfs/tmpfs/tmpfs_subr.c         standard
-vfs/tmpfs/tmpfs_vfsops.c       standard
-vfs/tmpfs/tmpfs_vnops.c                standard
+vfs/tmpfs/tmpfs_fifoops.c      optional tmpfs
+vfs/tmpfs/tmpfs_subr.c         optional tmpfs
+vfs/tmpfs/tmpfs_vfsops.c       optional tmpfs
+vfs/tmpfs/tmpfs_vnops.c                optional tmpfs
 #
 vm/default_pager.c             standard
 vm/device_pager.c              standard