in reply to Re^3: FUSE, fuse_get_context and private = dangling pointer woes
in thread FUSE, fuse_get_context and private = dangling pointer woes

What are you doing to get your error? I don't get it when I run it.

Unfortunately, neither your script nor any examples at dpavlin/perl-fuse use the 'init' callback, so there is no demonstration of how to use it. I may be using it incorrectly but.. I doubt it, because it works on the first call of fuse_get_context().

I may see if I can get in contact with the author and direct them here. I've had a look but I don't see any unit tests for it either, which might explain why the issue has been missed.

In the meantime, I think I shall just use the wrapping method as most of it is coded (longhandedly, bleh!) anyway..

Once again, thank you for your time and efforts to help!

  • Comment on Re^4: FUSE, fuse_get_context and private = dangling pointer woes

Replies are listed 'Best First'.
Re^5: FUSE, fuse_get_context and private = dangling pointer woes
by thanos1983 (Parson) on Oct 11, 2014 at 10:57 UTC

    Hello Anonymous Monk,

    Let me show you a complete error output, maybe you can see something that I am missing.

    Debug:

    The script is the one that I posted above, the only modification is this:

    my $mountpoint = "/home/thanos/test_fuse"; #$mountpoint = $ARGV[1] or die "You forgot to provide the mountpoint!\ +n";

    I am running on:

    Linux OS 3.13.0-38-generic #65-Ubuntu SMP Thu Oct 9 11:36:50 UTC 2014 +x86_64 x86_64 x86_64 GNU/Linux

    Perl Version:

    This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-li +nux-gnu-thread-multi

    Hope this gives more information in possible representation of error. If you have any possible thoughts on how to get over this error please let me know. Thanks in advance.

    Seeking for Perl wisdom...on the process of learning...not there...yet!

      I'm not sure what you are regarding to be an error..

      "Function not implemented" is returned by the Fuse module by default if you don't provide a callback for that function, which you haven't done (it would be handled by Fuse::main (getdir => ...);