From owner-freebsd-arch@FreeBSD.ORG Wed Nov 12 09:00:15 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B74FA106568E for ; Wed, 12 Nov 2008 09:00:15 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045082.chello.pl [87.206.45.82]) by mx1.freebsd.org (Postfix) with ESMTP id 476A28FC16 for ; Wed, 12 Nov 2008 09:00:14 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 0C08B456AB; Wed, 12 Nov 2008 09:27:05 +0100 (CET) Received: from localhost (pjdwl.wheel.pl [10.0.1.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id DB73945685; Wed, 12 Nov 2008 09:26:58 +0100 (CET) Date: Wed, 12 Nov 2008 09:26:58 +0100 From: Pawel Jakub Dawidek To: Ceri Davies Message-ID: <20081112082658.GA2441@garage.freebsd.pl> References: <20081027193545.GA95872@pin.if.uz.zgora.pl> <20081028161855.GA45129@zim.MIT.EDU> <20081106192829.GA98742@pin.if.uz.zgora.pl> <20081106195558.GG2281@submonkey.net> <20081107123259.GC34757@submonkey.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <20081107123259.GC34757@submonkey.net> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-arch@freebsd.org Subject: Re: Directory rename semantics. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 09:00:15 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 07, 2008 at 12:32:59PM +0000, Ceri Davies wrote: > On Fri, Nov 07, 2008 at 11:44:27AM +0100, Ivan Voras wrote: > > Ceri Davies wrote: > > > On Thu, Nov 06, 2008 at 08:28:29PM +0100, Edward Tomasz Napierala wro= te: > > >> After discussion about this with rwatson and pjd, I decided to do > > >> the opposite: change ZFS behaviour to match UFS. Reason is simple: > > >> this is security, and we want to be conservative here. It's impossi= ble > > >> to make sure this change wouldn't cause security problems. > > >=20 > > > Perhaps it would have been better to either do nothing or create a zfs > > > property that toggled this behaviour so that people who expect ZFS to > > > behave a certain way get it. I'm not sure why we would want all > > > filesystems to behave the same way, to be honest. > >=20 > > That would be desirable if we want file system semantics to be a > > property of the OS instead of individual file systems. (Though I don't > > know if there's ever been a conscious decision about this particular > > goal). If so, a knob that toggles between the behaviours should toggle > > it for all file systems. Having them behave differently can create > > problems in migration to and from ZFS. >=20 > That's essentially what has just happened, but without the knob. >=20 > I'm not really sure whether you agree with the change that was made or > not. =46rom user's perspective if I want to migrate from UFS to ZFS, I don't want to find out that there are differences in how FS behaves. I'm trying to make ZFS to be a full functional replacement for UFS, so that it supports chflags(2), extattrs, etc. Of course we need to draw a line what do we really want to support and what we may skip or support not fully. For example... ZFS/FreeBSD on directory creation inherits group ownership from the parent directory and now it also obeys directory write permissions when we want to move it to another directory. We support FreeBSD's extattrs, not Solaris fsattrs. We could support POSIX.1e ACLs easly (on top of extattrs), but we want to move to NFSv4-like ACLs with UFS too, AFAIK. We support chflags(2), but not all the flags. (I'm talking about perforce version.) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFJGpNRForvXbEpPzQRAjaMAJ9d6OeMcRWf235DzAvW0ufhxMvK8QCgtiFH +Tk7TCFmpT0VQzg7wiRU6jA= =ONrS -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--