From owner-freebsd-fs@FreeBSD.ORG Mon Oct 26 12:01:29 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB6621065695 for ; Mon, 26 Oct 2009 12:01:29 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3E0658FC17 for ; Mon, 26 Oct 2009 12:01:28 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA27341; Mon, 26 Oct 2009 14:01:24 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <4AE58F93.3040300@icyb.net.ua> Date: Mon, 26 Oct 2009 14:01:23 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Rich References: <5da0588e0910251500q79f72822w87581c2823360a71@mail.gmail.com> In-Reply-To: <5da0588e0910251500q79f72822w87581c2823360a71@mail.gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org Subject: Re: extattr/xattr on 8.0-RC1 ZFS? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2009 12:01:30 -0000 on 26/10/2009 00:00 Rich said the following: > Hello world, > I'm running 8.0-RC1 built from latest RELENG_8 on September 29th. > > I found a use case for extended attrs in my day to day life - I wanted > to make everything in a given directory have a default mask of > group-writable. > > I tried: > # setfacl -d -m u::rwx,g::rwx,mask::rwx /bukkit/home/rercola/oose > setfacl: acl_get_file() failed: Operation not supported > # zfs get xattr bukkit/home/rercola > NAME PROPERTY VALUE SOURCE > bukkit/home/rercola xattr off temporary > # zfs set xattr=on bukkit/home/rercola > # zfs get xattr bukkit/home/rercola > NAME PROPERTY VALUE SOURCE > bukkit/home/rercola xattr off temporary > > What's going on? Wikipedia says, uncited, that FBSD ZFS has extended > attributes. The FBSD wiki page on ZFS says that extattr is "done", but > the description hasn't changed from before this was the case. > I tried, naively: > > # extattrctl start /bukkit/home/rercola/ > extattrctl start: Operation not supported > > What's the correct thing to do here? Is it secretly unsupported and > the documentation is imprecise? Or am I just an idiot? I believe that only NFSv4-style ACLs are supported for ZFS. AFAIK, "default ACL" is a feature of POSIX-style ACLs. BTW, ACLs and extended attributes might be related things but they are not the same. And your attempt to use extattrctl was very naïve indeed, just open its manual page. setfacl(1), lsextattr(1) are mandatory reading :-) -- Andriy Gapon