Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753277AbYHINAN (ORCPT ); Sat, 9 Aug 2008 09:00:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751613AbYHIM75 (ORCPT ); Sat, 9 Aug 2008 08:59:57 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:55710 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbYHIM75 (ORCPT ); Sat, 9 Aug 2008 08:59:57 -0400 Date: Sat, 9 Aug 2008 08:59:53 -0400 From: Christoph Hellwig To: Ian Kent Cc: Andrew Morton , autofs mailing list , Kernel Mailing List , linux-fsdevel Subject: Re: [PATCH 4/4] autofs4 - add miscelaneous device for ioctls Message-ID: <20080809125953.GB16308@infradead.org> References: <20080807114002.4142.30417.stgit@web.messagingengine.com> <20080807114030.4142.76568.stgit@web.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080807114030.4142.76568.stgit@web.messagingengine.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 984 Lines: 19 On Thu, Aug 07, 2008 at 07:40:31PM +0800, Ian Kent wrote: > The actual problem with autofs is that it can't reconnect to existing > mounts. Immediately one things of just adding the ability to remount > autofs file systems would solve it, but alas, that can't work. This is > because autofs direct mounts and the implementation of "on demand mount > and expire" of nested mount trees have the file system mounted on top of > the mount trigger dentry. So what you really need instead of all the ioctl cruft is to get access to the sb of the hidden autofs4 mount. One way to do that that I can think of right now is to change from using get_sb_nodev as ->get_sb to a variant that can find an existing superblock using some mount options. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/