summaryrefslogtreecommitdiffstats
path: root/fuse/guestmount.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-05 18:36:02 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-08 10:21:48 +0000
commit2c4a7ef92a4583a1217213573ad406eb5d745990 (patch)
treea89f3f039f2333b27fa6e9ac198f86c13adef80a /fuse/guestmount.c
parent26118d498eefe10c8fa604f949680d2417c8b25c (diff)
downloadlibguestfs-2c4a7ef92a4583a1217213573ad406eb5d745990.tar.gz
libguestfs-2c4a7ef92a4583a1217213573ad406eb5d745990.tar.xz
libguestfs-2c4a7ef92a4583a1217213573ad406eb5d745990.zip
fish: Add --rw option (does nothing yet).
This adds the guestfish --rw option, intended in future to be required for writing to disk images. At the moment this does not change the default and so does nothing. This patch is intended for backporting to the stable branches so that we can start to introduce scripts which use 'guestfish --rw'.
Diffstat (limited to 'fuse/guestmount.c')
-rw-r--r--fuse/guestmount.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fuse/guestmount.c b/fuse/guestmount.c
index 55b71d77..1b3abf97 100644
--- a/fuse/guestmount.c
+++ b/fuse/guestmount.c
@@ -884,7 +884,7 @@ main (int argc, char *argv[])
/* The command line arguments are broadly compatible with (a subset
* of) guestfish. Thus we have to deal mainly with -a, -m and --ro.
*/
- static const char *options = "a:c:d:im:no:rv?Vx";
+ static const char *options = "a:c:d:im:no:rv?Vwx";
static const struct option long_options[] = {
{ "add", 1, 0, 'a' },
{ "connect", 1, 0, 'c' },
@@ -900,6 +900,7 @@ main (int argc, char *argv[])
{ "no-sync", 0, 0, 'n' },
{ "option", 1, 0, 'o' },
{ "ro", 0, 0, 'r' },
+ { "rw", 0, 0, 'w' },
{ "selinux", 0, 0, 0 },
{ "trace", 0, 0, 'x' },
{ "verbose", 0, 0, 'v' },
@@ -1043,6 +1044,10 @@ main (int argc, char *argv[])
OPTION_V;
break;
+ case 'w':
+ OPTION_w;
+ break;
+
case 'x':
OPTION_x;
ADD_FUSE_ARG ("-f");