Return-Path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:49895 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750824Ab1I0PWp (ORCPT ); Tue, 27 Sep 2011 11:22:45 -0400 Received: by wwf22 with SMTP id 22so7392515wwf.1 for ; Tue, 27 Sep 2011 08:22:44 -0700 (PDT) In-Reply-To: <1317099091.3176.31.camel@perseus.themaw.net> References: <1316747758.3346.89.camel@perseus.themaw.net> <20110922134510.24683.14576.stgit@warthog.procyon.org.uk> <1316707443.3346.44.camel@perseus.themaw.net> <1316709935.3346.48.camel@perseus.themaw.net> <20110922133529.6d3ea8de@barsoom.rdu.redhat.com> <20110922144453.6cf53a25@barsoom.rdu.redhat.com> <1316719228.3968.14.camel@lade.trondhjem.org> <2E1EB2CF9ED1CB4AA966F0EB76EAB4430B480BD4@SACMVEXC2-PRD.hq.netapp.com> <21772.1316774025@redhat.com> <1316788444.14812.10.camel@lade.trondhjem.org> <29743.1316791138@redhat.com> <87hb43tf2g.fsf@tucsk.pomaz.szeredi.hu> <1316827854.3346.154.camel@perseus.themaw.net> <20110924073610.4b045189@tlielax.poochiereds.net> <1317013864.3187.81.camel@perseus.themaw.net> <1317071626.19951.8.camel@lade.trondhjem.org> <1317072718.19951.13.camel@lade.trondhjem.org> <1317076424.19951.32.camel@lade.trondhjem.org> <1317078563.21770.8.camel@lade.trondhjem.org> <1317085155.21770.17.camel@lade.trondhjem.org> <1317097001.3176.20.camel@perseus.themaw.net> <1317099091.3176.31.camel@perseus.themaw.net> From: Linus Torvalds Date: Tue, 27 Sep 2011 08:22:24 -0700 Message-ID: Subject: Re: [PATCH] VFS: Suppress automount on [l]stat, [l]getxattr, etc. To: Ian Kent Cc: Trond Myklebust , Jeff Layton , Miklos Szeredi , David Howells , viro@zeniv.linux.org.uk, gregkh@suse.de, linux-nfs@vger.kernel.org, leonardo.lists@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 On Mon, Sep 26, 2011 at 9:51 PM, Ian Kent wrote: > > Yes, I also thought that AT_NO_AUTOMOUNT would need to be removed and > AT_AUTOMOUNT added as part of the change. But that can be done as a > follow up. In fact, since reasonably automounting will always be an issue only for directories (yeah, in theory you could extend it to regular files, but why would you?) it's probably not even worth adding AT_AUTOMOUNT at all - you can do the same thing by just adding a '/' at the end of the filename instead, and suddenly it works for *all* the stat() family system calls, not just the odd statat() ones that almost nobody uses. So it would be easy to add the AT_AUTOMOUNT flag, but whoever argues for it would have to be pretty convincing as to why it would be worth it. I committed the patch I sent out with your and Trond's acks. Linus