mount option does not work in guestmount

Bug #1891906 reported by LittleBigBrain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libguestfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

```
# guestmount -a test.qcow2 -o uid=1000 -o gid=1000 -m /dev/sda1 /mnt
$ mount -l | grep /mnt
/dev/fuse on /mnt type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
```
the user_id and group_id is not used.

Revision history for this message
Richard Jones (rjones-redhat) wrote :

Have you got the version of guestmount (guestmount --version)?

Revision history for this message
LittleBigBrain (braingateway) wrote :

guestmount 1.40.2

Revision history for this message
Richard Jones (rjones-redhat) wrote :

I'm afraid I don't know the answer but I can give some pointers to the code
so you can work out what's going on:

https://github.com/libguestfs/libguestfs/blob/master/fuse/guestmount.c

This is the program that is supposed to parse the -o options from
the command line. It adds them to a list of options (fuse_options)
that are passed to the libguestfs mount_local_* APIs. You should be
able to see the arguments being passed through to the API if you use
guestmount -x

https://github.com/libguestfs/libguestfs/blob/master/lib/fuse.c

This is where the API gets implemented. It's supposed to only pass
the options through to fuse_opt_add_arg where fuse does the rest.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.