From owner-freebsd-fs@FreeBSD.ORG Sat Apr 16 03:32:41 2011 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 DAADA1065675 for ; Sat, 16 Apr 2011 03:32:41 +0000 (UTC) (envelope-from james@jlauser.net) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9D0E48FC12 for ; Sat, 16 Apr 2011 03:32:41 +0000 (UTC) Received: by qyk27 with SMTP id 27so2221665qyk.13 for ; Fri, 15 Apr 2011 20:32:40 -0700 (PDT) Received: by 10.224.27.66 with SMTP id h2mr1962439qac.120.1302923215798; Fri, 15 Apr 2011 20:06:55 -0700 (PDT) Received: from [10.0.10.216] (cpe-74-76-129-142.nycap.res.rr.com [74.76.129.142]) by mx.google.com with ESMTPS id g28sm2373115qck.15.2011.04.15.20.06.53 (version=SSLv3 cipher=OTHER); Fri, 15 Apr 2011 20:06:54 -0700 (PDT) Message-ID: <4DA907DC.7080909@jlauser.net> Date: Fri, 15 Apr 2011 23:07:08 -0400 From: "James L. Lauser" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <20110416000112.GA13487@icarus.home.lan> <337FAD9E-6973-4CA4-96E2-4A24F69916AF@3geeks.org> In-Reply-To: <337FAD9E-6973-4CA4-96E2-4A24F69916AF@3geeks.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: question on extended attributes 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: Sat, 16 Apr 2011 03:32:41 -0000 On 04/15/2011 08:06 PM, Daniel Mayfield wrote: > > On Apr 15, 2011, at 7:01 PM, Jeremy Chadwick wrote: > >> On Fri, Apr 15, 2011 at 05:01:58PM -0500, Daniel Mayfield wrote: >>> I'm trying to use rsync and rsnapshot to make backup copies of my Mac to my freebsd 8.2 server . When I specify syncing extended attributes as well, I get an error for any file on the Mac that has a resource fork: >>> >>> rsync: rsync_xal_set: lsetxattr("Documents/","com.apple.ResourceFork") failed: No space left on device (28) >>> >>> I'd love to work on fixing this, but I'm seeing a bunch of references to UFS1 vs UFS2 in the extended attribute readme. But I'm not sure what I'm actually using (I took the default when it setup, which says ufs2+softdep, but mount simply says ufs). >>> >>> Can someone help point me in the right direction? >> >> Sorry if this sounds harsh or rude, but can I ask you what exactly >> extended filesystem attributes (usually ACLs) have to do with file >> resource forks on OS X? AFAIK they have nothing to do with one another. > > OS X stores resource forks (and a few other things) as extended attributes on HFS+ filesystems these days. Or at least that's how it presents the HFS+ concept of a resource fork to unix programs like rsync that understand extended attributes. > >> Also, you're aware of how Apple solved the resource fork problem when >> archiving something in a .zip file, right? The "_MACOSX" directory >> within the .zip. > > This is sub optimal as I'd like to be able to inspect/modify the "data fork" of the file on the freebsd box too. For example, editing files while I'm ssh'd into the freebsd machine remotely, but still preserving the icon when it gets copied back. If I were to do as you described, I may as well setup netatalk and build a time machine style backup device. That isn't my goal. > > daniel > Daniel... I back up several Macs at home to my FreeBSD file server using netatalk. Setting it up is very simple (just install it and turn it on and by default, it'll server home directories), and it's smart enough to store resource forks in the same way that OS X does when you plug in a non-HFS disk directly (with the dot-underscore files). -- James L. Lauser james@jlauser.net http://jlauser.net/