Hi,

Now that Leopard's out, I'm wondering if anyone can give me any
insight into why my custom icon version of HelloWorldFS might be
crashing Quick Look:

08/11/2007 00:07:31 Finder[23398] [QL ERROR] quicklookd crashed while
thumbnailing file://localhost/Volumes/helloworldicns/hello.txt
08/11/2007 00:07:31 com.apple.launchd[106]
(com.apple.quicklook[23624]) Exited abnormally: Bus error

Here is a comparison between the hello.txt file presented by my
filesystem and that presented by filesystems-obcj/HelloFS, which
doesn't crash Quick Look:
(Assume /Applications/HelloFUSE.app is currently running)

$ svn checkout http://helloworldicns.googlecode.com/svn/trunk/ helloworldicns
A    helloworldicns/helloworldicns.c
A    helloworldicns/simpleresourcefork.h
Checked out revision 3.
$ cd helloworldicns
$ gcc -o helloworldicns helloworldicns.c -lfuse -L/usr/local/lib
-I/usr/local/include -D__FreeBSD__=10
$ mkdir /Volumes/helloworldicns
$ ./helloworldicns
-oicns_file=/Applications/HelloFuse.app/Contents/Resources/hellodoc.icns
/Volumes/helloworldicns
$ diff /Volumes/Hello/hello.txt /Volumes/helloworldicns/hello.txt
$ ls -la /Volumes/Hello /Volumes/helloworldicns
/Volumes/Hello:
total 1
dr-xr-xr-x  2 hamish  staff    0  1 Jan  1970 .
drwxrwxrwt@ 7 root    admin  238  8 Nov 00:21 ..
-r-xr-xr-x@ 1 hamish  staff   13  1 Jan  1970 hello.txt

/Volumes/helloworldicns:
total 1
dr-xr-xr-x  3 root  wheel    0  1 Jan  1970 .
drwxrwxrwt@ 7 root  admin  238  8 Nov 00:21 ..
-r-xr-xr-x@ 1 root  wheel   13  1 Jan  1970 hello.txt
$ xattr /Volumes/Hello/hello.txt /Volumes/helloworldicns/hello.txt
/Volumes/Hello/hello.txt: com.apple.FinderInfo
/Volumes/Hello/hello.txt: com.apple.ResourceFork
/Volumes/helloworldicns/hello.txt: com.apple.FinderInfo
/Volumes/helloworldicns/hello.txt: com.apple.ResourceFork
$ xattr -l /Volumes/Hello/hello.txt > x1
$ xattr -l /Volumes/helloworldicns/hello.txt > x2
$ diff x1 x2
$

The code in the SVN repository is identical to the code I posted at
http://code.google.com/p/macfuse/wiki/HELLOWORLDFS except for an extra
bit which writes specific values to unused (reserved) areas in the
resource fork to make that xattr value completely rather than just
functionally identical to the one in HelloFS, and a change of the
permissions returned by getattr in helloworldicns to make those match
as well.

As you can see, the only difference between the two files is the
ownership. I am puzzled as to why my hello.txt is owned by root/wheel
rather than hamish/staff -- perhaps that is at the root of the
problem?

Any advice greatly appreciated.

Best wishes,
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to