On Oct 27, 8:01 pm, "Rhythmic Fistman" <[EMAIL PROTECTED]> wrote:
> Yours,
> Confused.

Let me try to be clear(er).

xattrs though ._ files do work in a properly-written MacFUSE file
system on Tiger.

As I've suggested often, developers should counter-check any
inexplicable behavior in their file systems against a known reference
file system. fusexmp_fh is a good reference file system that supports
xattrs natively. Its behavior would be quite close to that of HFS+.
sshfs is a good reference file system that relies on ._ files.

Try this test on Tiger: Use the latest developer release of MacFUSE
(see the last section of http://code.google.com/p/macfuse/wiki/AUTOINSTALL
if you don't know how to set it up) and the latest release of sshfs
(http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS). Then, use
sshfs to mount some directory--it can be on localhost too.

$ mkdir /tmp/dir /tmp/ssh
$ sshfs [EMAIL PROTECTED]:/tmp/dir /tmp/ssh

Now create a file on your Desktop.

$ echo foo > ~/Desktop/foo.txt

Now go to the Finder and set a custom icon on the file. You can do a
cmd-i on some existing file, say, even your hard drive icon. Click on
the small icon in the top left corner of the info window (that is,
copy the icon). Then, do a cmd-i on foo.txt, click on its icon, and
paste the icon you just copied. This will cause both the Finder Info
and the Resource Fork to be set. Now, copy the file from the Desktop
to the sshfs mount point. Do it both ways. Use the Finder, and do it
through cp. The destination should have identical extended attributes
to the source, albeit in a ._ file. You can also try the reverse copy:
from sshfs to HFS+. Again, the extended attributes should be preserved
(this time as native HFS+ xattrs). Don't just rely on the file's
appearances--check explicitly that the destination indeed has the same
xattrs. If the Finder doesn't show the correct icon on the
destination, do a "killall Finder".

If all this works, you have MacFUSE working correctly. If it doesn't,
then we can talk about potential bugs and potential fixes.

Amit
--~--~---------~--~----~------------~-------~--~----~
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