Bug 766528 - Mount options not respected for guestmount
Summary: Mount options not respected for guestmount
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 09:37 UTC by Mark Olliver
Modified: 2013-09-09 07:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-12 15:20:56 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.