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

Overwrite fuse option #19

Open
Fank opened this issue Apr 21, 2017 · 2 comments
Open

Overwrite fuse option #19

Fank opened this issue Apr 21, 2017 · 2 comments
Assignees

Comments

@Fank
Copy link

Fank commented Apr 21, 2017

If i add a volume to a docker service:
--mount volume-driver=infinit,source=fankserver/teamspeak,target=/data

It will be mounted via deamon:

infinit volume run fankserver/teamspeak --as fankserver --fuse-option allow_root --fetch --push --mountpoint /....
$ infinit volume export --name teamspeak --as fankserver
{"default_permissions":"","mount_options":{"push":true},"name":"fankserver/teamspeak","network":"fankserver/asd"}

I wana change the fuse option "allow_root" -> "allow_other":

infinit volume update --as fankserver --fuse-option allow_other --name teamspeak

The deamon will use the followig and fail:

infinit volume run fankserver/teamspeak --as fankserver --fuse-option allow_root --fuse-option allow_other --fetch --push --mountpoint /....

Because allow_root and allow_other can not exists at the same time.

@Dimrok
Copy link

Dimrok commented Apr 22, 2017

Hi @Fank

It's seems obvious it's a bug. We'll fix it for the next release. However, you can edit the volume descriptor manually.

You can find it at $HOME/.local/share/infinit/filesystem/volume/fankserver/teamspeak and it should look like this.

{
    "default_permissions" : "",
    "mount_options" : {
        "fuse_options" : [
          <BROKEN OPTIONS>
        ]
    },
    "name" : "fankserver/teamspeak",
    "network" : "fankserver/asd"
}

Let me know if it worked.

@Fank
Copy link
Author

Fank commented Apr 22, 2017

the volume update command works and write the file as expected:

# cat .local/share/infinit/filesystem/volumes/fankserver/teamspeak 
{
    "default_permissions" : "",
    "mount_options" : {
        "fuse_options" : [
            "allow_other"
        ],
        "push" : true
    },
    "name" : "fankserver/teamspeak",
    "network" : "fankserver/asd"
}

But the volume for the docker container which is mounted by the infinit daemon still uses allow_root
The main problem is that it will append allow_other instead of replace allow_root

@Dimrok Dimrok self-assigned this Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants