From patchwork Mon May 29 22:19:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 9753699 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 88618602F0 for ; Mon, 29 May 2017 22:19:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7620926D08 for ; Mon, 29 May 2017 22:19:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67EEE27968; Mon, 29 May 2017 22:19:29 +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=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_TVD_MIME_EPI 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 D9AC826D08 for ; Mon, 29 May 2017 22:19:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750913AbdE2WTZ (ORCPT ); Mon, 29 May 2017 18:19:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:53976 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750864AbdE2WTZ (ORCPT ); Mon, 29 May 2017 18:19:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Cc" Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0CE03AB09; Mon, 29 May 2017 22:19:24 +0000 (UTC) From: NeilBrown To: Steve Dickson Date: Tue, 30 May 2017 08:19:16 +1000 Cc: systemd-devel@freedesktop.org, linux-nfs@vger.kernel.org Subject: [PATCH] nfs.man: document incompatibility between "bg" option and systemd. In-Reply-To: <20170529133814.GC17967@gardel-login> References: <87lgpkgwrw.fsf@notabene.neil.brown.name> <20170529133814.GC17967@gardel-login> cc: Lennart Poettering Message-ID: <87tw43fgrf.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Systemd does not, and will not, support "bg" correctly. It has other, better, ways to handle "background" mounting. Explain this. See also https://github.com/systemd/systemd/issues/6046 Signed-off-by: NeilBrown Reviewed-by: Niels de Vos --- utils/mount/nfs.man | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man index cc6e992ed807..7e76492d454f 100644 --- a/utils/mount/nfs.man +++ b/utils/mount/nfs.man @@ -372,6 +372,21 @@ Alternatively these issues can be addressed using an automounter (refer to .BR automount (8) for details). +.IP +When +.B systemd +is used to mount the filesystems listed in +.IR /etc/fstab , +the +.B bg +option is not supported, and may be stripped from the option list. +Similar functionality can be achieved by providing the +.B x-system.automount +option. This will cause +.B systemd +to attempt to mount the filesystem when the mountpoint is first +accessed, rather than during system boot. The mount still happens in +the "background", though in a different way. .TP 1.5i .BR rdirplus " / " nordirplus Selects whether to use NFS v3 or v4 READDIRPLUS requests. @@ -1810,7 +1825,8 @@ such as security negotiation, server referrals, and named attributes. .BR rpc.idmapd (8), .BR rpc.gssd (8), .BR rpc.svcgssd (8), -.BR kerberos (1) +.BR kerberos (1), +.BR systemd.mount (5) . .sp RFC 768 for the UDP specification. .br