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

Pass-through FUSE mount options #6

Closed
putty182 opened this issue Sep 17, 2017 · 4 comments
Closed

Pass-through FUSE mount options #6

putty182 opened this issue Sep 17, 2017 · 4 comments

Comments

@putty182
Copy link

putty182 commented Sep 17, 2017

Mount options to FUSE appear to be hard-coded (eg: default_permissions)

This makes it difficult to expose a catfs mount for use in a docker container from the host; docker tries using it's overlayfs as root, but fails since the catfs mount isn't mounted with allow_other or allow_root.

Here's an example of what I'm trying to run with:

RUST_LOG=catfs=debug,fuse=debug,integration_tests=debug \
    /usr/local/bin/catfs /mnt/source /data/cache /mnt/dest \
    -o rw,allow_other,umask=002,gid=1000,uid=1000,syslog,dev,suid

## Output from `catfs`
2017-09-17 07:28:54 DEBUG - catfs "/mnt/source" "/data/cache"
2017-09-17 07:28:54 INFO  - Mounting /mnt/dest
2017-09-17 07:28:54 DEBUG - INIT(1)   kernel: ABI 7.26, flags 0x1ffffb, max readahead 131072
2017-09-17 07:28:54 DEBUG - INIT(1) response: ABI 7.8, flags 0x31, max readahead 131072, max write 16777216

##  Output from `mount`
/dev/fuse on /mnt/dest type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions)
@kahing
Copy link
Owner

kahing commented Sep 17, 2017

you need to do

catfs -o rw -o allow-other -o umask=002 ... --  /mnt/source /data/cache /mnt/dest

the -- is important.

@kahing kahing closed this as completed Sep 17, 2017
@putty182
Copy link
Author

d'oh - thanks, this works a treat

@kahing
Copy link
Owner

kahing commented Sep 17, 2017

Reopen for now, supporting the more natural syntax is probably necessary when we want to support mounting from fstab

@kahing kahing reopened this Sep 17, 2017
kahing added a commit that referenced this issue Jan 11, 2018
allows `catfs -o flag,flag2 -- src cache mnt` instead of
`catfs -o flag -o flag2 -- src cache mnt`

refs #6
@kahing kahing closed this as completed Jan 14, 2018
@kahing
Copy link
Owner

kahing commented Jan 16, 2018

note that catfs does not currently accept options like umask=002,gid=1000,uid=1000 because those options are implemented in the C libfuse.

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

2 participants