From patchwork Mon May 14 03:04:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 10396531 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 32A5D60541 for ; Mon, 14 May 2018 03:04:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F21E2900B for ; Mon, 14 May 2018 03:04:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DC7128F4A; Mon, 14 May 2018 03:04:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A357F2903F for ; Mon, 14 May 2018 03:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752038AbeENDEa (ORCPT ); Sun, 13 May 2018 23:04:30 -0400 Received: from icp-osb-irony-out8.external.iinet.net.au ([203.59.1.225]:37992 "EHLO icp-osb-irony-out8.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbeENDE3 (ORCPT ); Sun, 13 May 2018 23:04:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2DSCgBP/Pha/+U/0XZcHQEBBQELAYNDY?= =?us-ascii?q?Xsog3KUcEUBAQEDBoE7fJMygXgeEAgBhEACgwkhNhYBAgEBAQEBAQJsHAyFKQY?= =?us-ascii?q?jVhAYAQwCGA4CAkcQBhODJYFyDBCpbYIcGgKIIIIiBYEJhxyBDIEHiHKDG4I0I?= =?us-ascii?q?AKMeos8CY5Rh2uFBJIIIwkogVJNLgqCbgEBDosQhUsyMHoBAY0cgkUBAQ?= X-IPAS-Result: =?us-ascii?q?A2DSCgBP/Pha/+U/0XZcHQEBBQELAYNDYXsog3KUcEUBAQE?= =?us-ascii?q?DBoE7fJMygXgeEAgBhEACgwkhNhYBAgEBAQEBAQJsHAyFKQYjVhAYAQwCGA4CA?= =?us-ascii?q?kcQBhODJYFyDBCpbYIcGgKIIIIiBYEJhxyBDIEHiHKDG4I0IAKMeos8CY5Rh2u?= =?us-ascii?q?FBJIIIwkogVJNLgqCbgEBDosQhUsyMHoBAY0cgkUBAQ?= X-IronPort-AV: E=Sophos;i="5.49,398,1520870400"; d="scan'208";a="126179562" Received: from unknown (HELO pluto.themaw.net) ([118.209.63.229]) by icp-osb-irony-out8.iinet.net.au with ESMTP; 14 May 2018 11:04:16 +0800 Subject: [PATCH 04/10] autofs - create autofs Kconfig and Makefile From: Ian Kent To: Andrew Morton Cc: linux-fsdevel , autofs mailing list , Kernel Mailing List Date: Mon, 14 May 2018 11:04:15 +0800 Message-ID: <152626705591.28589.356365986974038383.stgit@pluto.themaw.net> In-Reply-To: <152626703024.28589.9571964661718767929.stgit@pluto.themaw.net> References: <152626703024.28589.9571964661718767929.stgit@pluto.themaw.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Create Makefile and Kconfig for autofs module. Signed-off-by: Ian Kent --- fs/Kconfig | 1 + fs/Makefile | 1 + fs/autofs/Kconfig | 20 ++++++++++++++++++++ fs/autofs/Makefile | 7 +++++++ 4 files changed, 29 insertions(+) create mode 100644 fs/autofs/Kconfig create mode 100644 fs/autofs/Makefile diff --git a/fs/Kconfig b/fs/Kconfig index bc821a86d965..e712e62afe59 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -108,6 +108,7 @@ source "fs/notify/Kconfig" source "fs/quota/Kconfig" +source "fs/autofs/Kconfig" source "fs/autofs4/Kconfig" source "fs/fuse/Kconfig" source "fs/overlayfs/Kconfig" diff --git a/fs/Makefile b/fs/Makefile index c9375fd2c8c4..2e005525cc19 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -102,6 +102,7 @@ obj-$(CONFIG_AFFS_FS) += affs/ obj-$(CONFIG_ROMFS_FS) += romfs/ obj-$(CONFIG_QNX4FS_FS) += qnx4/ obj-$(CONFIG_QNX6FS_FS) += qnx6/ +obj-$(CONFIG_AUTOFS_FS) += autofs/ obj-$(CONFIG_AUTOFS4_FS) += autofs4/ obj-$(CONFIG_ADFS_FS) += adfs/ obj-$(CONFIG_FUSE_FS) += fuse/ diff --git a/fs/autofs/Kconfig b/fs/autofs/Kconfig new file mode 100644 index 000000000000..6a2064eb3b27 --- /dev/null +++ b/fs/autofs/Kconfig @@ -0,0 +1,20 @@ +config AUTOFS_FS + tristate "Kernel automounter support (supports v3, v4 and v5)" + default n + help + The automounter is a tool to automatically mount remote file systems + on demand. This implementation is partially kernel-based to reduce + overhead in the already-mounted case; this is unlike the BSD + automounter (amd), which is a pure user space daemon. + + To use the automounter you need the user-space tools from + ; you also want + to answer Y to "NFS file system support", below. + + To compile this support as a module, choose M here: the module will be + called autofs. + + If you are not a part of a fairly large, distributed network or + don't have a laptop which needs to dynamically reconfigure to the + local network, you probably do not need an automounter, and can say + N here. diff --git a/fs/autofs/Makefile b/fs/autofs/Makefile new file mode 100644 index 000000000000..43fedde15c26 --- /dev/null +++ b/fs/autofs/Makefile @@ -0,0 +1,7 @@ +# +# Makefile for the linux autofs-filesystem routines. +# + +obj-$(CONFIG_AUTOFS_FS) += autofs.o + +autofs-objs := init.o inode.o root.o symlink.o waitq.o expire.o dev-ioctl.o