From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755971Ab1IIDh4 (ORCPT ); Thu, 8 Sep 2011 23:37:56 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:46499 "EHLO out4.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755032Ab1IIDhv (ORCPT ); Thu, 8 Sep 2011 23:37:51 -0400 X-Sasl-enc: PCXHCzq/AMeMo0S0fLZ4SA6yItEIaMG4ZjS+LmxwsDQg 1315539470 Subject: Re: [PATCH] vfs: automount should ignore LOOKUP_FOLLOW From: Ian Kent To: Al Viro Cc: Linus Torvalds , Miklos Szeredi , David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Leonardo Chiquitto , autofs@linux.kernel.org In-Reply-To: <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> <20110908215425.GW2203@ZenIV.linux.org.uk> Content-Type: text/plain; charset="UTF-8" Date: Fri, 09 Sep 2011 11:37:44 +0800 Message-ID: <1315539464.3952.45.camel@perseus.themaw.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-09-08 at 22:54 +0100, Al Viro wrote: > 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. Yes, that the sort of problem that we see. For example, find(1) has had problems with this sort of inconsistency with before and after comparisons it makes as it walks the directory tree. Ian