From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268682AbUHYUlp (ORCPT ); Wed, 25 Aug 2004 16:41:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268677AbUHYUjX (ORCPT ); Wed, 25 Aug 2004 16:39:23 -0400 Received: from imladris.demon.co.uk ([193.237.130.41]:58889 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S268668AbUHYUgE (ORCPT ); Wed, 25 Aug 2004 16:36:04 -0400 Date: Wed, 25 Aug 2004 21:35:49 +0100 From: Christoph Hellwig To: Linus Torvalds Cc: Christoph Hellwig , Hans Reiser , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Lyamin aka FLX , ReiserFS List Subject: Re: silent semantic changes with reiser4 Message-ID: <20040825213549.A11531@infradead.org> Mail-Followup-To: Christoph Hellwig , Linus Torvalds , Christoph Hellwig , Hans Reiser , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Lyamin aka FLX , ReiserFS List References: <20040824202521.GA26705@lst.de> <412CEE38.1080707@namesys.com> <20040825200859.GA16345@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from torvalds@osdl.org on Wed, Aug 25, 2004 at 01:22:55PM -0700 X-SRS-Rewrite: SMTP reverse-path rewritten from by phoenix.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 25, 2004 at 01:22:55PM -0700, Linus Torvalds wrote: > And yes, the semantics can _easily_ be solved in very unixy ways. > > One way to solve it is to just realize that a final slash at the end > implies pretty strongly that you want to treat it as a directory. So what > you do is: > > - without the slash, a file-as-dir won't open with O_DIRECTORY (ENOTDIR) > - with the slash, it won't open _without_ O_DIRECTORY (EISDIR) > > Problem solved. Very user-friendly, and very intuitive. That would solve the O_DIRECTORY issue, the dentry aliasing still needs work though with the semantics for link/unlink/rename. Maybe Hans & you should start 2.7 to work this out? :)