From: Sascha Wildner Date: Thu, 12 Apr 2012 21:04:33 +0000 (+0200) Subject: kernel/tmpfs: Make compiling tmpfs into the kernel optional. X-Git-Tag: v3.2.0~1138 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/4c5dcbec92081035c08dacb81cacbd6eb5476660 kernel/tmpfs: Make compiling tmpfs into the kernel optional. 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 if it isn't either in-kernel or already loaded. --- diff --git a/sys/conf/files b/sys/conf/files index ceff746..95622f0 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -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