Bug 766528

Summary: Mount options not respected for guestmount
Product: [Community] Virtualization Tools Reporter: Mark Olliver <mark.olliver>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: gabriel, mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-12 15:20:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark Olliver 2011-12-12 09:37:37 UTC
Description of problem:
If i give guestmount a set of mount options these are not respected and instead it mount the filesystem as follows:
guestmount on /mnt/guest_snapshot type fuse.guestmount (rw,nosuid,nodev)

I had tried:
 guestmount -a /dev/images/autest -m /dev/sda1:/:defaults,noatime /mnt/guest_snapshot

Which for my other file systems if mounting a normal disk then I get /dev/sda1 on / type ext4 (rw,noatime,errors=remount-ro)


Version-Release number of selected component (if applicable):
guestmount 1.15.10 - using development GIT checkout from last week.

How reproducible:
100%

Steps to Reproduce:
1. guestmount -a /dev/images/autest -m /dev/sda1:/:defaults,noatime /mnt/guest_snapshot
2. mount
  
Actual results:
guestmount on /mnt/guest_snapshot type fuse.guestmount (rw,nosuid,nodev)

Expected results:
guestmount on /mnt/guest_snapshot type fuse.guestmount (rw,noatime,errors=remount-ro)

Additional info:

Comment 1 Richard W.M. Jones 2011-12-12 10:21:52 UTC
I think this might be controlled by FUSE itself.  Did
you have a look at 'guestmount --fuse-help' output?

Comment 2 Richard W.M. Jones 2011-12-12 13:43:43 UTC
Mark, since you fixed this with a guestmount FUSE option,
could you summarise how it was fixed here and close the bug.
This ensures there is a record for other users.

Comment 3 Mark Olliver 2011-12-12 14:24:29 UTC
I fixed this by adding a '-o' to the guestmount command, this then allowed the mount to process correctly.

guestmount -a /dev/images/autest -m /dev/sda1 /mnt/guest_snapshot -o noatime,dev,sync

Comment 4 Richard W.M. Jones 2011-12-12 15:21:43 UTC
Interesting, I didn't know you could use 'ordinary' mount
options there.  I thought it was limited to FUSE options,
so you learn something new every day.

Comment 5 Gabriel Kerneis 2013-09-09 07:00:28 UTC
After some trial and error, I can confirm that using "-o dev" works (e.g.), but only if you call guestmount as root. Otherwise, the options are ignored are even rejected with an error message.