diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-28 13:35:53 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-28 14:21:55 +0100 |
commit | 4e529e06a4500959cd783f5029354fea47a253a6 (patch) | |
tree | fb90342de254f3188e56a8c412d991e7ae3eab6d /fuse | |
parent | feaddb062afcab9117215b4c2188f63d8b647b99 (diff) | |
download | libguestfs-4e529e06a4500959cd783f5029354fea47a253a6.tar.gz libguestfs-4e529e06a4500959cd783f5029354fea47a253a6.tar.xz libguestfs-4e529e06a4500959cd783f5029354fea47a253a6.zip |
fish: fuse: Add -m dev:mnt:opts to allow mount options to be specified.
This lets you turn on ACLs and xattrs by doing:
-m /dev/sda1:/:acl,user_xattr
The extra parameter is passed through to mount_options:
libguestfs: trace: mount_options "acl,user_xattr" "/dev/sda1" "/"
Notes
Notes:
Labels: feature
Diffstat (limited to 'fuse')
-rw-r--r-- | fuse/guestmount.pod | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/fuse/guestmount.pod b/fuse/guestmount.pod index 338af97b..ea0cb638 100644 --- a/fuse/guestmount.pod +++ b/fuse/guestmount.pod @@ -148,7 +148,9 @@ to try to read passphrases from the user by opening C</dev/tty>. Connect to a live virtual machine. (Experimental, see L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>). -=item B<-m dev[:mnt]> | B<--mount dev[:mnt]> +=item B<-m dev[:mountpoint[:options]]> + +=item B<--mount dev[:mountpoint[:options]]> Mount the named partition or logical volume on the given mountpoint B<in the guest> (this has nothing to do with mountpoints in the host). @@ -156,6 +158,16 @@ B<in the guest> (this has nothing to do with mountpoints in the host). If the mountpoint is omitted, it defaults to C</>. You have to mount something on C</>. +The third (and rarely used) part of the mount parameter is the list of +mount options used to mount the underlying filesystem. If this is not +given, then the mount options are either the empty string or C<ro> +(the latter if the I<--ro> flag is used). By specifying the mount +options, you override this default choice. Probably the only time you +would use this is to enable ACLs and/or extended attributes if the +filesystem can support them: + + -m /dev/sda1:/:acl,user_xattr + =item B<-n> | B<--no-sync> By default, we attempt to sync the guest disk when the FUSE mountpoint |