diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-04 10:41:34 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-04 10:41:34 +0100 |
commit | c9cc61940b41b1abb763a1932adfc3461372c10b (patch) | |
tree | 891b310f73b6d1166b59d91ec6f541923c9ab5e6 /fish/fish.c | |
parent | 64a5ae0e969754c709974104a83e6d1dbb4c2764 (diff) | |
download | libguestfs-c9cc61940b41b1abb763a1932adfc3461372c10b.tar.gz libguestfs-c9cc61940b41b1abb763a1932adfc3461372c10b.tar.xz libguestfs-c9cc61940b41b1abb763a1932adfc3461372c10b.zip |
Implemented autosync, make it the default for guestfish.
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fish/fish.c b/fish/fish.c index fbb26def..90f3a10a 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -82,6 +82,7 @@ usage (void) " -h|--cmd-help cmd Display detailed help on 'cmd'\n" " -a image Add image\n" " -m dev[:mnt] Mount dev on mnt (if omitted, /)\n" + " -n|--no-sync Don't autosync\n" /*" --ro|-r All mounts are read-only\n"*/ " -v|--verbose Verbose messages\n" "For more information, see the manpage guestfish(1).\n"); @@ -96,6 +97,7 @@ main (int argc, char *argv[]) { "cmd-help", 2, 0, 'h' }, { "help", 0, 0, '?' }, { "mount", 1, 0, 'm' }, + { "no-sync", 0, 0, 'n' }, { "verbose", 0, 0, 'v' }, { 0, 0, 0, 0 } }; @@ -113,6 +115,8 @@ main (int argc, char *argv[]) exit (1); } + guestfs_set_autosync (g, 1); + for (;;) { c = getopt_long (argc, argv, options, long_options, NULL); if (c == -1) break; @@ -153,6 +157,10 @@ main (int argc, char *argv[]) mps = mp->next; break; + case 'n': + guestfs_set_autosync (g, 0); + break; + case 'v': verbose++; guestfs_set_verbose (g, verbose); |