From owner-freebsd-fs@freebsd.org Sat Mar 12 18:27:05 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 077DAACEA2E for ; Sat, 12 Mar 2016 18:27:05 +0000 (UTC) (envelope-from Martin.vGagern@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6003F77E for ; Sat, 12 Mar 2016 18:27:04 +0000 (UTC) (envelope-from Martin.vGagern@gmx.net) Received: from [192.168.71.20] ([78.55.160.25]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LsgvV-1ZhmXf1PMv-012JiD for ; Sat, 12 Mar 2016 19:27:02 +0100 To: freebsd-fs@freebsd.org From: Martin von Gagern Subject: State of ZFS xattr support in FreeBSD Message-ID: <56E45F75.2000905@gmx.net> Date: Sat, 12 Mar 2016 19:27:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:Dm7VQEQNMg/r8PRDi7omfRFODWCAZySSTLkUBvU6aDgxqKBweOz gFO2a5Uk7/26v6Qe5brM7gerMJJSy6WTkPVR8rbG4KJpEbuMdMXim9xg0xEkRT+9pv9StJd gYv9VotPAbZbBNR1xI8F+Xa/3ICQPiNW+f/WNG+po9UqI8QUuwbnCs6ovJwbQz/vmQEgC27 tGJ5zpt8ImZhBPq1BEmUg== X-UI-Out-Filterresults: notjunk:1;V01:K0:4m3pI/Kfd6Y=:lMHrWr+patl7jUfwPt3HLs 5Ts/N/c9296FgaH3JQkiqqW2m8SVUxVKVJ90PM7IO7R9R4xI9IwB8GCQ+IvlIiMoAjjGMURfW Zdw3T3CMEi1mAZCwn6xG7qlvwH07CnyyEOVsYl6j7VG/e2Jz2gGppKtlAGV5mJAhPNg3W0saW cJo2lP4axAANj2mxNvUZyzbAPWqE6FAeurhI9HlpNf+WiSqEbM+zyTzi2XgiAt+FkUrn5ZVWX mciADpaUIbL82CP7IkyT0ZSr7xOyFYG62FYz0dXiI9ubyZ9a58gHI11u5xkvugqRX8PxwIUhZ BZJU3QthvgTllEQkQXuc5t4EWzWDpXBxypqu6eBuavV01ER88z4puQLfsNyKVukL6LmZGbjsw A6yaWXHWPUnSbMQE2uKAaMraNIgyVVQQOEbG4MLKgnTdG4UkjZ17fvkZJf1zSD2I7r3WrClSq 1BVP+3dLmpmX8VDHhd+wsFOdhY5PtKv6KtkaiLcF+GYRVoY7U1jTe3H5Vu95ho2vXOToaPUlp fujcy8w9zhkiXOH0O5WIaQ0tp3Lq9tLRIEu25BUS3jQ+uha7b9fPuY3ZQktCacMhKL4f4dEoP 41EueqhDhqzGDdeUfjQSbFaSHxsXfB9c4q1DtrDGTN8Yo71fIVXmnzglYIs7L9Hx26DaepsRL XMG0nuBTj0a1rDKMyRITZ2lHjMH1WTVjeYxfKF0TxMaNkVe2nbqaKHmiSf1BNekezezyaRH+K Kq6LMZoLb3ESVEKBRFTMx/g5Ugqa+t1OXF+k4j5zk8pCEx+AoXwVkWmQcyuBAsHveOas5KHXz NH+5gTl X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2016 18:27:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm trying to work out whether or not, or rather to what extend, xattrs are supported in FreeBSD using ZFS. I've read some conflicting information. 1. zfs get xattr lists it as on (default) for /, /usr and /var, but as off (temporary) for all other datasets, including children of those mentioned above. 2. Running zfs set xattr=on zroot/usr/home I get the message “property 'xattr' not supported on FreeBSD: permission denied.” 3. This agrees with the zfs man page: “The xattr property is currently not supported on FreeBSD.” 4. setextattr, getextattr and lsextattr seem to work well enough. 5. I also managed to save and restore a device file node using “rsync --fake-super”, and could see its data using lsextattr and getextattr. 6. Wikipedia has some discussion in the xattr talk page. Apparently there once was a claim that ZFS supports xattr since FreeBSD 8, but that was removed later on, with reference to the manpage (see 3.). Currently I get the impression that extended attributes on zfs work in practice, but that the xattr property which would control their use does not work as it would in other zfs distributions. But I'd like to hear that confirmed (or corrected) before I trust large amounts of backup data to an rsync --fake-super running on such a machine. I'd rather not lose all my metadata due to known xattr problems. If it matters, this is a very fresh FreeBSD 10.2 install I just set up, with ZFS set up by the installer. I posted this question in other places before: http://unix.stackexchange.com/q/266913/20807 (currently with a bounty) https://forums.freebsd.org/threads/55418/ Feel free to cross-post your answers to these. If you don't, I'll probably post a summary myself. Thank you very much, Martin von Gagern -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlbkX24ACgkQRhp6o4m9dFtzQACaAkCbCR2Yi1PyicZ61PLM4Ad+ 2pUAn0P8YzEQ3rOMfdD8MVnLP1PQ2CLu =Bazu -----END PGP SIGNATURE-----