Skip to content

Commit 2a3ae0a

Browse files
raven-autorvalds
authored andcommitted
autofs: create autofs Kconfig and Makefile
Create Makefile and Kconfig for autofs module. [[email protected]: make autofs4 Kconfig depend on AUTOFS_FS] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ian Kent <[email protected]> Tested-by: Randy Dunlap <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8547190 commit 2a3ae0a

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

fs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ source "fs/notify/Kconfig"
108108

109109
source "fs/quota/Kconfig"
110110

111+
source "fs/autofs/Kconfig"
111112
source "fs/autofs4/Kconfig"
112113
source "fs/fuse/Kconfig"
113114
source "fs/overlayfs/Kconfig"

fs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ obj-$(CONFIG_AFFS_FS) += affs/
102102
obj-$(CONFIG_ROMFS_FS) += romfs/
103103
obj-$(CONFIG_QNX4FS_FS) += qnx4/
104104
obj-$(CONFIG_QNX6FS_FS) += qnx6/
105+
obj-$(CONFIG_AUTOFS_FS) += autofs/
105106
obj-$(CONFIG_AUTOFS4_FS) += autofs4/
106107
obj-$(CONFIG_ADFS_FS) += adfs/
107108
obj-$(CONFIG_FUSE_FS) += fuse/

fs/autofs/Kconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
config AUTOFS_FS
2+
tristate "Kernel automounter support (supports v3, v4 and v5)"
3+
default n
4+
help
5+
The automounter is a tool to automatically mount remote file systems
6+
on demand. This implementation is partially kernel-based to reduce
7+
overhead in the already-mounted case; this is unlike the BSD
8+
automounter (amd), which is a pure user space daemon.
9+
10+
To use the automounter you need the user-space tools from
11+
<https://www.kernel.org/pub/linux/daemons/autofs/>; you also want
12+
to answer Y to "NFS file system support", below.
13+
14+
To compile this support as a module, choose M here: the module will be
15+
called autofs.
16+
17+
If you are not a part of a fairly large, distributed network or
18+
don't have a laptop which needs to dynamically reconfigure to the
19+
local network, you probably do not need an automounter, and can say
20+
N here.

fs/autofs/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Makefile for the linux autofs-filesystem routines.
3+
#
4+
5+
obj-$(CONFIG_AUTOFS_FS) += autofs.o
6+
7+
autofs-objs := init.o inode.o root.o symlink.o waitq.o expire.o dev-ioctl.o

fs/autofs4/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
config AUTOFS4_FS
22
tristate "Kernel automounter version 4 support (also supports v3 and v5)"
33
default n
4+
depends on AUTOFS_FS = n
45
help
56
The automounter is a tool to automatically mount remote file systems
67
on demand. This implementation is partially kernel-based to reduce
@@ -30,3 +31,10 @@ config AUTOFS4_FS
3031
- any "alias autofs autofs4" will need to be removed.
3132

3233
Please configure AUTOFS_FS instead of AUTOFS4_FS from now on.
34+
35+
NOTE: Since the modules autofs and autofs4 use the same file system
36+
type name of "autofs" only one can be built. The "depends"
37+
above will result in AUTOFS4_FS not appearing in .config for
38+
any setting of AUTOFS_FS other than n and AUTOFS4_FS will
39+
appear under the AUTOFS_FS entry otherwise which is intended
40+
to draw attention to the module rename change.

0 commit comments

Comments
 (0)