Ok, I have some traces now, but only when I create files in the loop directory, not in the dir folder (origin ?). So it looks like I can try to debug with this method :)
( BTW, does anyone have a print helper to have a nice human readable display of struct fuse_file_info *fi ) Thanks, - Benjamin (touch loop/foo) -> getattr: /Users/bsergean/dir/ getattr: /Users/bsergean/dir/foo getattr: /Users/bsergean/dir/foo create: /Users/bsergean/dir/foo fgetattr: /Users/bsergean/dir/foo getattr: /Users/bsergean/dir/foo flush: /Users/bsergean/dir/foo release: /Users/bsergean/dir/foo (echo bar > loop/bar) -> getattr: /Users/bsergean/dir/ getattr: /Users/bsergean/dir/bar create: /Users/bsergean/dir/bar fgetattr: /Users/bsergean/dir/bar getattr: /Users/bsergean/dir/bar write: /Users/bsergean/dir/bar getattr: /Users/bsergean/dir/bar flush: /Users/bsergean/dir/bar release: /Users/bsergean/dir/bar On Sat, Aug 29, 2009 at 11:02 AM, bsergean<[email protected]> wrote: > > Hi all, > > I'm trying to write a MacFuse FS that's RW. I started from the hellofs > sample, and was quickly able to have a Read Only FS. But now I'm stuck > when I'm trying to create files in my FS. I always get Permission > Denied errors. > > So I had a look at how one could debug a Fuse FS and it looks like > checking the loopback canonical example is the good way to go. So I > added trace calls* to all entry point (open / write / getattr / ...), > to try to see what's happening when a file is created / copyed. But I > cannot see anything ! The only trace I get is when I'm reading the > FS. > > Thanks for any feedback guys ! > - Benjamin > > ps: > I can copy my modified loopback.c in the thread if anyone is > interested. > > My helper. > > /* helper for tracing */ > static void trace(const char* func, const char* msg) > { > FILE* fd = fopen("/tmp/loopback.log", "a"); > fprintf(fd, "%s: %s\n", func, msg); > fclose(fd); > } > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
