Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761038AbXE1Oov (ORCPT ); Mon, 28 May 2007 10:44:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754104AbXE1Oon (ORCPT ); Mon, 28 May 2007 10:44:43 -0400 Received: from mail-gw2.sa.eol.hu ([212.108.200.109]:41040 "EHLO mail-gw2.sa.eol.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752155AbXE1Oom (ORCPT ); Mon, 28 May 2007 10:44:42 -0400 To: pavel@ucw.cz CC: viro@ftp.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org In-reply-to: <20070524120731.GC7444@ucw.cz> (message from Pavel Machek on Thu, 24 May 2007 12:07:32 +0000) Subject: Re: [RFC PATCH] file as directory References: <20070522221045.GH4095@ftp.linux.org.uk> <20070524120731.GC7444@ucw.cz> Message-Id: From: Miklos Szeredi Date: Mon, 28 May 2007 16:43:36 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 25 > > > As for unlink... How do you deal with having that thing > > > mounted, mounting something _under_ it (so that vfsmount would be kept > > > busy) and then unlinking that sucker? > > > > Yeah, that's a good point. Current patch doesn't deal with that. > > Simplest solution could be to disallow submounting these. Don't think > > it makes much sense anyway. > > Hmmm, cd foo.tgz/bar/baz.tgz/xyzzy makes sense, and it is implemented > as a submount, no? Yes, that certainly makes sense, but it's the same "special" mount, which goes away automatically, so there isn't any problem with unlinking with any number of such submounts. But I don't want to explicitly prohibit submounting by normal mounts either, if it's not too hard to handle, and Al's new vfsmount refcounting scheme should take care of the difficult part of that. Miklos - 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/