On Mon, Oct 27, 2008 at 2:23 PM, Brian Gianforcaro <[EMAIL PROTECTED]> wrote:
>
> Ted,
>
> Thanks for the suggestion, you were right on the mark.
> There was a bug in my code, I was not returning the permissions for
> the root directory.

Excellent. At some point I realized that people would probably forget
about the root directory since it is handled for you in read-only
mode, so I made a change that has been present in the developer
preview releases for some time. It will handle the permissions on the
root directory if it is mounted read-write:

http://code.google.com/p/macfuse/source/detail?r=1008

The next full release of MacFUSE should have this in the framework. It
will not affect you if you already have code in place to handle
attributesOfItemAtPath for the root directory (as you do now).

ted

>
> Thanks,
> Brian
>
> On Oct 27, 2:38 pm, "ted bonkenburg" <[EMAIL PROTECTED]> wrote:
>> On Mon, Oct 27, 2008 at 8:57 AM, Brian Gianforcaro <[EMAIL PROTECTED]> wrote:
>>
>> > Hello,
>>
>> > I've written a file system which pull's document data from a web
>> > service, I based the project initially off of the YTFS tutorial/
>> > example and went from there. I have my FS reading/opening files from
>> > the web just fine, however I cannot seem to figure out how to mark the
>> > FS as read/write instead of read-only. I've removed the "ro" flag from
>> > the actual file system options and implemented the write methods
>> > (mostly as stubs returning the correct values) but this doesn't seem
>> > to help.
>>
>> > Do I need to define some of the Attribute Key's?
>>
>> > Maybe:  NSString* kGMUserFileSystemFinderFlagsKey ?
>>
>> A quick suggestion is to make sure that you are returning the file
>> permissions in attributesOfItemAtPath. Be sure to provide
>> NSFilePosixPermissions and NSFileType. Don't forget to do this for the
>> root directory as well.
>>
>> If that doesn't fix the immediate issue then let me know and we can
>> try to help you figure it out.
>>
>> ted
>>
>>
>>
>> > Thanks,
>> > Brian Gianforcaro
> >
>

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