Hello CandyAngel,

Welcome to the community. Well I am not really familiar with Fuse to be more exact I never used it before. Well one reason that I can imagine as I was reading the documentation could be access problem access. I went online and I found also this possible solution that might also be a reason that you are having this problems.

Update: the source link Installing Fuse

In order for ordinary (non-superuser) users to use Fuse two things must be done: you must change the permissions on the fusermount utility and add users to the fuse group.

$ sudo chmod 4755 /usr/bin/fusermount

$ sudo usermod -a -G fuse username

Update 2: just in case that someone also has the same problem on latest versions of linux OS. I was not able to install Fuse.pm and I manage to found solution to my problem here Cannot install on Ubuntu 12.10.

The Perl module FUSE has a bug which manifest itself in that sometimes file "fusermount" doesn't have execute permissions after a successful install.

This file can be in one or more folders:

/bin/

/usr/bin/

/usr/local/bin/

So, we run 3 commands:

chmod a+x /bin/fusermount

chmod a+x /usr/bin/fusermount

chmod a+x /usr/local/bin/fusermount

This fix works fine. But it can show up 1 or 2 errors that the file does not exist.

In my case by applying chmod a+x /bin/fusermount worked perfectly and I manage to install the module.

Update 3: I think the code that you have copy and paste you have some errors. I execute your code and I get:

fuse: failed to access mountpoint mnt: No such file or directory could not mount fuse filesystem!

Because mountpoint  => 'mnt', does not exist, so I modify it to mountpoint  => '/mnt', and then I get:

fusermount: failed to open /etc/fuse.conf: Permission denied fusermount: user has no write access to mountpoint /mnt

I assume that you have permission access, just for future reference solution to people who do not have access. Follow the documentation Error Message “fusermount – failed to open /etc/fuse.conf – Permission denied” in Linux.

Check also the my $priv_data = 'PRIVDAT'; it dose not seem correct. I will try to play tomorrow with mounting and unmounting a usb stick just for the fun of the module. It should be sufficient to test and experiment the code. Let me know if the solution worked for you.

Update 4: forgot to mention, I also found Fuse::Simple which might give you all the features that you need and based on the documentation is much easier and simpler than Fuse.

I hope this is a possible solution to your problem, but I am might be wrong. As I said I never worked with Fuse before.

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

In reply to Re: FUSE, fuse_get_context and private = dangling pointer woes by thanos1983
in thread FUSE, fuse_get_context and private = dangling pointer woes by CandyAngel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.