Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763537AbXEWLjf (ORCPT ); Wed, 23 May 2007 07:39:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759272AbXEWLj1 (ORCPT ); Wed, 23 May 2007 07:39:27 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57505 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758938AbXEWLj0 (ORCPT ); Wed, 23 May 2007 07:39:26 -0400 Date: Wed, 23 May 2007 12:39:25 +0100 From: Al Viro To: Miklos Szeredi Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, torvalds@linux-foundation.org Subject: Re: [RFC PATCH] file as directory Message-ID: <20070523113925.GT4095@ftp.linux.org.uk> References: <20070523095127.GQ4095@ftp.linux.org.uk> <20070523102437.GS4095@ftp.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 23 > When the real superblock is created. It could even be the _same_ > super block as the real one. There'd be just the problem of anchoring > the dir-on-file dentries somewhere... > > Or with fuse the dir-on-file mount can just come from any mounted > filesystem, again possibly the same one as the parent. I do actually > test with this. The userspace filesystem supplies a file descriptor, > from which the struct path is extracted and returned from ->enter(). Then I do not understand what this mechanism could be used for, other than an odd way to twist POSIX behaviour and see how much of the userland would survive that. Certainly not useful for your "look into tarball as a tree", unless you seriously want to scan the entire damn fs for tarballs at mount time and set up a superblock for each. And for per-file extended attributes/forks/whatever-you-call-that-abomination it also obviously doesn't help, since you lose them for directories. IOW, what uses do you have in mind? Complete scenario, please... - 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/