From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751148AbWGQSxh (ORCPT ); Mon, 17 Jul 2006 14:53:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751151AbWGQSxh (ORCPT ); Mon, 17 Jul 2006 14:53:37 -0400 Received: from rwcrmhc14.comcast.net ([216.148.227.154]:41722 "EHLO rwcrmhc14.comcast.net") by vger.kernel.org with ESMTP id S1751148AbWGQSxh (ORCPT ); Mon, 17 Jul 2006 14:53:37 -0400 Message-ID: <44BBDCB5.8070906@namesys.com> Date: Mon, 17 Jul 2006 11:53:41 -0700 From: Hans Reiser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Mahoney CC: Valdis.Kletnieks@vt.edu, 7eggert@gmx.de, Eric Dumazet , ReiserFS List , Linux Kernel Mailing List , Andrew Morton Subject: Re: [PATCH] reiserfs: fix handling of device names with /'s in them References: <6xQ4C-6NB-43@gated-at.bofh.it> <6xQea-6ZX-13@gated-at.bofh.it> <44B7D97B.20708@suse.com> <44B9E6D5.2040704@namesys.com> <44BA61A2.5090404@suse.com> <44BA8214.7040005@namesys.com> <44BABB14.6070906@suse.com> <44BAE619.9010307@namesys.com> <44BAECE2.8070301@suse.com> <44BAFDC3.7020301@namesys.com> <200607171808.k6HI8kjL018161@turing-police.cc.vt.edu> <44BBD400.3060504@suse.com> In-Reply-To: <44BBD400.3060504@suse.com> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Jeff Mahoney wrote: > Valdis.Kletnieks@vt.edu wrote: > > >On Sun, 16 Jul 2006 20:02:27 PDT, Hans Reiser said: > > >>Create a mountpoint which knows how to resolve a/b without using a > >>"directory". > > >And said mountpoint gets past the '/' interpretation in the VFS, how, > exactly? > > >fs/namei.c, do_path_lookup() does magic on a '/' on about the 3rd line. > >So you're going to get handed 'a'. > > > That's where he started talking about how BSD gets namei() right by > allowing each file system to deal with it how it chooses. > > Personally, I think it's insane. On occasion, I've started to port > ReiserFS to BSD-like systems, Porting V3 to anything is insane. Why would you even consider it? > and I get so fed up with how you have to > reinvent the wheel for everything. There's something to be said for > replaceable-anything semantics, but personally I like the Linux model > and having an agreed-upon framework to work with. Linux vs. BSD's namei is the difference between thinking you know how to do things and everyone should be forced into your mold, and thinking that someone will always be more clever, at the very least with regards to some special case you could never have anticipated. > > I also think it's insane to come up with a reisermetafs to export procfs > information when a simple s#/#!# _on a single directory name_ will do > the job. Or just create a parent directory and skip the metafs. Look, I don't much care about the other details of coding it, but if you are changing !'s to /'s, as an architect my intuition says something is wrong and being papered over. /'s are just fine, and what the block devices do is elegant. You are doing a quick hack. > > -Jeff > > -- > Jeff Mahoney > SUSE Labs