FSSetCatalogInfo and apple DoubleHeader
FSSetCatalogInfo and apple DoubleHeader
- Subject: FSSetCatalogInfo and apple DoubleHeader
- From: Alan Shouls <email@hidden>
- Date: Mon, 2 Mar 2009 13:00:10 +0000
Hi,
I am porting a remote file-system from the PC to OSX. As I make
progress I am writing test cases.
The file system does not support extended attributes so my
understanding is that the OS magically cuts in and creates
corresponding Apple doubleheader files where they are required.
My initial test is quite simple.
- create a file using POSIX open and close
- Get the finder info using FSGetCatalogInfo
- change the finder info so it has a custom creator and file type
- use FSSetCatalogInfo to set this finder info
- use FSGetCatalogInfo to pull the finder info on the file and test
it contains the new values.
My test fails as the file-type and creator has not changed. Looking
through my log I can see that I am getting file-system calls to get
information about the doubleheader file but no call to create it. Is
this what is expected? None of the FSGetCatalogInfo or
FSSetCatalogInfo calls return an error code.
Best regards
Alan Shouls
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden