Return-Path: Received: from mail-ey0-f174.google.com ([209.85.215.174]:34420 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754372Ab1IWPPs (ORCPT ); Fri, 23 Sep 2011 11:15:48 -0400 Received: by eya28 with SMTP id 28so2291610eya.19 for ; Fri, 23 Sep 2011 08:15:47 -0700 (PDT) In-Reply-To: <1316790109.14812.14.camel@lade.trondhjem.org> 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> <1316790109.14812.14.camel@lade.trondhjem.org> From: Linus Torvalds Date: Fri, 23 Sep 2011 08:15:27 -0700 Message-ID: Subject: Re: [PATCH] VFS: Suppress automount on [l]stat, [l]getxattr, etc. To: Trond Myklebust Cc: David Howells , miklos@szeredi.hu, Jeff Layton , 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 Fri, Sep 23, 2011 at 8:01 AM, Trond Myklebust wrote: > > Wrong. Miklos's patch introduces new behaviour that was never present > previously: Look at the big picture. The real damage wasn't done my Miklos, and that's something you don't seem to understand. So stop with the crazy "just revert" crap. That's not how it works. If you want to talk about reverts, then you need to go all the way back to the follow_link behavior. Afaik, the closest we can get to old behavior is just checking LOOKUP_DIRECTORY. We might want to check LOOKUP_OPEN too and that solves your "whaa, whaah, it might be a file" thing. But neither stat nor lstat used to auto-mount with autofs (and quite frankly, some NFS-side automounting should strive to look the same, imgo). So please *understand* the problem I have already. My problem is that you seem to think "revert miklos" just fixes all the issues and is some "safe" approach. It just re-introduces the *original* regression. Linus