On Dec 5, 2007 5:22 AM, Hamish <[EMAIL PROTECTED]> wrote: > > > I'm trying to ascertain whether the problem I'm seeing is a bug in > Apple frameworks or in MacFUSE. > > Has anyone successfully managed to serve xattrs from a MacFUSE > filesystem using listxattr and getxattr, rather than dot-underscore
files? > Yes. I've managed to serve com.apple.FinderInfo and com.apple.ResourceForkin order to do a custom icon on a file on Leopard. I haven't tried it on Tiger. > My helloworldicns code (http://code.google.com/p/helloworldicns/) adds > icon serving functionality to the helloworldfs example from the wiki > by providing com.apple.ResourceFork and com.apple.FinderInfo through > listxattr and getxattr for /hello.txt. This differs from the way > FUSEObjC's HelloFuse.app works, which uses dot-underscore files > instead. > > Any attempt to view the helloworldicns file system's hello.txt using > Finder (thumbnail preview or quick look) or TextEdit causes a crash > (bus error). However, it opens fine in XCode, Safari, and Pages, and can be viewed fine in the Terminal using cat or less. > A crash in Finder or in your filesystem? I haven't done this with a text file, but thumbnail preview and quicklook have worked for me. Usually the Finder will read the contents of the file (not just the xattrs) along with performing other operations when doing preview or quicklook. Have you tried using "-odebug" and "-f" to see what Finder might be doing just before a crash? > If hello.txt is copied from the helloworldicns file system to an HFS+ > file system, using either cp or Finder drag-and-drop, the resulting > copy works without problem in Finder and TextEdit. The two files are > identical according to diff, and so are their xattrs according to > "xattr -l" and diff. > > Does anyone have any idea why certain apps might have problems with > the file but only when served from the MacFUSE file system? > None. Sorry :-( ted > > Thanks, > Hamish > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "macfuse-devel" 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-devel?hl=en -~----------~----~----~----~------~----~------~--~---
