0

I'm writing a fuse filesystem.

How do I pass extra data to the functions in struct fuse_operations?

In particular, how can I access the void *, that I can set in fuse_main() and similar, from functions in struct fuse_operations?

I'm looking for a method other than global variables, as I am making my fuse operations testable.

fadedbee
  • 42,671
  • 44
  • 178
  • 308

1 Answers1

0

http://fuse.sourceforge.net/doxygen/structfuse__context.html

I can get the data with fuse_get_context. I should be able to fake this function in my tests.

fadedbee
  • 42,671
  • 44
  • 178
  • 308