From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH] vfs: automount should ignore LOOKUP_FOLLOW Date: Mon, 05 Sep 2011 17:37:39 +0100 Message-ID: <17416.1315240659@redhat.com> References: <87liu37z3x.fsf@tucsk.pomaz.szeredi.hu> Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Leonardo Chiquitto , Ian Kent , Al Viro , Linus Torvalds , autofs@linux.kernel.org To: Miklos Szeredi Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39363 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448Ab1IEQiG (ORCPT ); Mon, 5 Sep 2011 12:38:06 -0400 In-Reply-To: <87liu37z3x.fsf@tucsk.pomaz.szeredi.hu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Miklos Szeredi wrote: > After 2.6.38, with the introduction of the ->d_automount() > infrastructure, stat(2) and others would start triggering automount > while lstat(2), etc. still would not. This is a regression and a > userspace ABI change. It doesn't necessarily mean it's wrong. The main class of program that needs to be prevented from automounting are things that do bulk stat'ing (e.g. ls) - and they should probably be doing lstat() anyway. > + /* We don't want to mount if someone's just doing a stat - > + * unless they're stat'ing a directory and appended a '/' to > + * the name. Btw, line length is 80 chars. This comment could easily use one fewer line. If you use emacs you can do: ESC 7 9 C-x f to set the right margin and then: M-q whilst the cursor is in the comment paragraph to be rearranged and it will 'fill' the paragraph to 79 characters. David