From: Arnd Bergmann Subject: Re: [RFC 0/7] [RFC] cramfs: fake write support Date: Mon, 2 Jun 2008 17:01:16 +0200 Message-ID: <200806021701.17076.arnd@arndb.de> References: <200805311737.58991.arnd@arndb.de> <200806021613.15088.arnd@arndb.de> <8353.1212417209@jrobl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Cc: Jamie Lokier , Phillip Lougher , David Newall , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, hch@lst.de To: hooanon05@yahoo.co.jp Return-path: Received: from moutng.kundenserver.de ([212.227.126.171]:50221 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752269AbYFBPBd (ORCPT ); Mon, 2 Jun 2008 11:01:33 -0400 In-Reply-To: <8353.1212417209@jrobl> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Monday 02 June 2008, hooanon05@yahoo.co.jp wrote: > Aure rename returns EXDEV when the target is a dir and it has child > entr(y|ies) on lower branhc(es). And mv(1) handles this case. > My Engilsh might be miunderstood. Do you think link(2) should return an > error when the target exists on lower writable branch? Any writes should always just go to the top level. If the source file for link() exists on the top level, link should succeed even if a target exists on a lower level (given that the user has permissions to unlink that file), but should return EXDEV if the source comes from a lower level. Arnd <><