Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268846AbUIHFsc (ORCPT ); Wed, 8 Sep 2004 01:48:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268839AbUIHFsc (ORCPT ); Wed, 8 Sep 2004 01:48:32 -0400 Received: from as8-6-1.ens.s.bonet.se ([217.215.92.25]:12254 "EHLO zoo.weinigel.se") by vger.kernel.org with ESMTP id S268824AbUIHFs2 (ORCPT ); Wed, 8 Sep 2004 01:48:28 -0400 To: Gunnar Ritter Cc: Christer Weinigel , Horst von Brand , , Linus Torvalds , Tonnerre , Spam , ReiserFS List , Hans Reiser , Pavel Machek , David Masover , , , Jamie Lokier , Christoph Hellwig , Alexander Lyamin aka FLX , Chris Wedgwood Subject: Re: silent semantic changes with reiser4 References: <200409070206.i8726vrG006493@localhost.localdomain> <413D4C18.6090501@slaphack.com> <1183150024.20040907143346@tnonline.net> <413DD5B4.nailC801GI4E2@pluto.uni-freiburg.de> <413E3280.nailEK92X8CU7@pluto.uni-freiburg.de> <413E4836.nailFFM11WGWE@pluto.uni-freiburg.de> From: Christer Weinigel Organization: Weinigel Ingenjorsbyra AB Date: 08 Sep 2004 07:48:27 +0200 In-Reply-To: <413E4836.nailFFM11WGWE@pluto.uni-freiburg.de> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1550 Lines: 32 Gunnar Ritter writes: > Besides, copying xattrs is usually permitted (POSIX.1-2004, XCU cp): > > # If the implementation provides additional or alternate access control > # mechanisms (see the Base Definitions volume of IEEE Std 1003.1-2001, > # Section 4.4, File Access Permissions), their effect on copies of files > # is implementation-defined. In <413DD5B4.nailC801GI4E2@pluto.uni-freiburg.de> you wrote: >A POSIX.1-conforming cp implementation would not be allowed to copy >additional streams, unless either additional options are given or the >type of the file being copied is other than S_IFREG. I read this as that POSIX mandates that cp can absolutely not copy anything else but the file contents. That is what I called broken. If we implement named streams as xattrs and that can be accessed with openat(..., O_XATTR) this means that cp is allowed to copy the xattrs (well, named streans don't neccesarily have to be "alternate access control mechanisms", but they can use the same xattr namespace). That's quite ok in that case. /Christer -- "Just how much can I get away with and still go to heaven?" Freelance consultant specializing in device driver programming for Linux Christer Weinigel http://www.weinigel.se - 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/