Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it cross-compilable? #83

Open
vi opened this issue Jul 30, 2020 · 6 comments
Open

Is it cross-compilable? #83

vi opened this issue Jul 30, 2020 · 6 comments

Comments

@vi
Copy link

vi commented Jul 30, 2020

Does it depend on availablity of libfuse library or C code in general? Does it talk directly to /dev/fuse after mounting?

@ubnt-intrepid
Copy link
Owner

It is sure since the mounting process is performed by calling fusermount directly.

@sjamgade
Copy link

I tried to cross-compile the passthrough example on Buster for RPi2.
the exmaple always failed with

$ ./polyfuse-example-passthrough -s junk/ mnt/
Error: too short control message length

added some debug messages around the recvmsg in receive_fd

mount opitions are "/usr/bin/fusermount" "-o" "default_permissions,fsname=passthrough,auto_unmount" "--" "mnt/"
mount opitions are UnixStream { fd: 3, local: (unnamed), peer: (unnamed) }
mount opitions are UnixStream { fd: 4, local: (unnamed), peer: (unnamed) }
msg is msghdr { msg_name: 0x0, msg_namelen: 0, msg_iov: 0x7e87c1f4, msg_iovlen: 1, msg_control: 0x7e87c1fc, msg_controllen: 16, msg_flags: 0 }
making syscall
msg is msghdr { msg_name: 0x0, msg_namelen: 0, msg_iov: 0x7e87c1f4, msg_iovlen: 1, msg_control: 0x7e87c1fc, msg_controllen: 0, msg_flags: 0 }
rec is 0
Error: too short control message length`

@sjamgade
Copy link

allright working fine after sudo ln -s /bin/fusermount /usr/bin/
Sorry for hijacking the thread.

@ubnt-intrepid
Copy link
Owner

@sjamgade From 0.4.0, the default location to fusermount has been changed to absolute path, and this configuration can be changed with this undocumented option. Could you confirm that you get the same result when specifying actual fusermount path with this option instead of creating symlink?

@sjamgade
Copy link

sjamgade commented Feb 6, 2021

@ubnt-intrepid I passed the path as argument in the program instead of creating the link and worked flawlessly. Thanks for the hint

@ubnt-intrepid
Copy link
Owner

@sjamgade Thanks for additional test.
This is a problem that occurs when the fusermount path does not exist, and since it does not depend on cross-compilation context. So I'd like to transfer the discussion to #146.

steveej added a commit to steveej-forks/threefold-rfs that referenced this issue Mar 14, 2024
polyfuse currently assumes a hardcoded, absolute path for this binary
which isn't universally given.

[1]: ubnt-intrepid/polyfuse#83
steveej added a commit to steveej-forks/threefold-rfs that referenced this issue Mar 14, 2024
polyfuse currently assumes a hardcoded, absolute path for this binary
which isn't universally given.

[1]: ubnt-intrepid/polyfuse#83
steveej added a commit to steveej-forks/threefold-rfs that referenced this issue Mar 14, 2024
polyfuse currently assumes a hardcoded, absolute path for this binary
which isn't universally given.

[1]: ubnt-intrepid/polyfuse#83
steveej added a commit to steveej-forks/threefold-rfs that referenced this issue Mar 14, 2024
polyfuse currently assumes a hardcoded, absolute path for this binary
which isn't universally given.

[1]: ubnt-intrepid/polyfuse#83
steveej added a commit to steveej-forks/threefold-rfs that referenced this issue Mar 14, 2024
polyfuse currently assumes a hardcoded, absolute path for this binary
which isn't universally given.

[1]: ubnt-intrepid/polyfuse#83
muhamadazmy pushed a commit to threefoldtech/rfs that referenced this issue Mar 14, 2024
polyfuse currently assumes a hardcoded, absolute path for this binary
which isn't universally given.

[1]: ubnt-intrepid/polyfuse#83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants