On Mon, Oct 27, 2008 at 10:26 AM, RF <[EMAIL PROTECTED]> wrote:
>
> I'm having trouble getting resource forks in fuse filesystems working
> on
> both Tiger and Leopard. I'm using versions 1.7.0/1.7.1.
>
> By "working" I mean copying correctly from my fs with both "cp" and
> the Finder.
>
> On Leopard everything is very simple as xattrs work everywhere.
>
> On Tiger things are more difficult. The Finder completely ignores
> extended attributes.
> and cp reads extended attributes, but seems to discard the result.
>
> So I added an appledouble interface for Tiger. After much trial and
> error I got
> it working with the Tiger Finder (very fussy, e.g. finder info is
> compulsory,
> magic #0x51607, version 0x20000), however for cp copying, the result
> is
> basically the same as with xattrs: cp reads and discards my
> appledouble file.
>
> Observations:
>  Tiger cp works for apple double files on other FSs (e.g. fat32 usb
> key)
>
>  On Leopard cp via appledouble only works if you enable auto_xattr
> (breaks vol icon)
>
>  At some point in the recent past, volume icons stopped working for
> me on Tiger
>
>  I'm synthesizing my own appledouble files. Finder info is 32 zeroes.
>
>
> Can anyone offer any insight?

I'm assuming you are using the c library and not the Objective-C
MacFUSE.framework?

You should be able to get this working. I remember it was a pain to
get it working properly with the Objective-C framework but I did get
it to work in the end. The code is open source with a BSD license, so
feel to look at that.

http://macfuse.googlecode.com/svn/trunk/core/sdk-objc/

The GMUserFileSystem.{h,m} does most of the work. You may also find
GMFinderInfo.{h,m}, GMResourceFork.{h,m}, and GMAppleDouble.{h,m}
helpful.

On Leopard, you should not need noautoxattr. You should return ENOATTR
for non-existent attributes and ENOTSUP for attributes that you don't
want to support.

On Tiger one thing I remember is that you need to make sure that the
AppleDouble (._) files are listed in the directory listing. If I
recall correctly, this is not necessary for AppleDouble files to work
on Leopard although I prefer using xattrs on Leopard anyway.

Let me know if you have specific questions. Hopefully the code can
help you figure things out, or if you want an easier time consider
using the Objective-C framework :-)

ted

>
> Cheers,
> RF
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MacFUSE" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to