From owner-freebsd-arch@FreeBSD.ORG Thu Mar 14 23:23:22 2013 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C13988C9; Thu, 14 Mar 2013 23:23:22 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 7EDF41C0; Thu, 14 Mar 2013 23:23:22 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id 4BD9BB02; Fri, 15 Mar 2013 00:20:02 +0100 (CET) Date: Fri, 15 Mar 2013 00:24:50 +0100 From: Pawel Jakub Dawidek To: Bruce Evans Subject: Re: patches to add new stat(2) file flags Message-ID: <20130314232449.GC1446@garage.freebsd.pl> References: <20130307000533.GA38950@nargothrond.kdm.org> <20130307214649.X981@besplex.bde.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p2kqVDKq5asng8Dg" Content-Disposition: inline In-Reply-To: <20130307214649.X981@besplex.bde.org> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: arch@FreeBSD.org, "Kenneth D. Merry" , fs@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2013 23:23:22 -0000 --p2kqVDKq5asng8Dg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 07, 2013 at 10:21:38PM +1100, Bruce Evans wrote: > On Wed, 6 Mar 2013, Kenneth D. Merry wrote: >=20 > > I have attached diffs against head for some additional stat(2) file fla= gs. > > > > The primary purpose of these flags is to improve compatibility with CIF= S, > > both from the client and the server side. > > ... > > UF_IMMUTABLE: Command line name: "uchg", "uimmutable" > > ZFS name: XAT_READONLY, ZFS_READONLY > > Windows: FILE_ATTRIBUTE_READONLY > > > > This flag means that the file may not be modified. > > This is not a new flag, but where applicable it is > > mapped to the Windows readonly bit. ZFS and UFS > > now both support the flag and enforce it. > > > > The behavior of this flag is compatible with MacOS X. >=20 > This is incompatible with mapping the DOS read-only attribute to the > non-writeable file permission in msdosfs. msdosfs does this mainly to > get at least one useful file permission, but the semantics are subtly > different from all of file permissions, UF_IMMUTABLE and SF_IMMUTABLE. > I think it should be a new flag. I agree, especially that I saw some discussion recently on Illumos mailing lists to not enforce this flag in ZFS, which would be confusing to FreeBSD users if we forget to _not_ merge that change. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --p2kqVDKq5asng8Dg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlFCXEEACgkQForvXbEpPzSCswCeLMmHONhIZDnAFFCZD+iv2Ghq AygAn0fbIw2k8sJHl5Fv41sUqi4kIjY8 =Tb+w -----END PGP SIGNATURE----- --p2kqVDKq5asng8Dg--