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.
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |