From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] vfs: automount should ignore LOOKUP_FOLLOW Date: Thu, 8 Sep 2011 22:54:25 +0100 Message-ID: <20110908215425.GW2203@ZenIV.linux.org.uk> References: <87hb4q9b3r.fsf@tucsk.pomaz.szeredi.hu> <1315281208.3210.26.camel@perseus.themaw.net> <87mxeixfaq.fsf@tucsk.pomaz.szeredi.hu> <1315319903.3210.51.camel@perseus.themaw.net> <87ipp5y912.fsf@tucsk.pomaz.szeredi.hu> <1315485406.3476.9.camel@perseus.themaw.net> <87bouv17dc.fsf@tucsk.pomaz.szeredi.hu> <20110908195043.GV2203@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Miklos Szeredi , Ian Kent , David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Leonardo Chiquitto , autofs@linux.kernel.org To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Sep 08, 2011 at 01:19:49PM -0700, Linus Torvalds wrote: > >> I'm inclined to apply the patch as a regression fix, but I'll let this > >> thread try to convince me for another day.. > > > > IIRC, that matches traditional SunOS behaviour and it actually does make > > sense; you want wildcard expansion and ls -l to be doable even when there's > > a stuck NFS server. ?IOW, non-triggering lstat(2) is a matter of usability... > > non-triggering lstat() isn't the issue, afaik. We never trigger on lstat. > > nontriggering *stat()* is the issue. We didn't *use* to trigger on > stat() either. Now in 2.6.38+ we do. Yes. Again, IIRC that's what SunOS implementation had been doing all along; I think the reason was that stat()+open()+fstat() getting different results for stat and fstat would spook quite a few programs, but I could be easily wrong on that. I've no strong preferences for or against that change; to be honest, the set of situations when automount triggers always left an impression of voodoo balancing between usability (== not triggering it too much, lest we end up with stuck boxen and unhappy admins) and not breaking expectations of userland (e.g. stat/open/fstat issue)...