diff options
author | Ot ten Thije <ottenthije@google.com> | 2010-10-18 13:37:37 +0100 |
---|---|---|
committer | Ot ten Thije <ottenthije@google.com> | 2010-10-28 13:47:54 +0100 |
commit | ae835acc2d1a8b4aaeb599add9cfc02ea5789eaf (patch) | |
tree | aff76c935e32ce7bf6a0ae26150fa1ffd56e8faa /android/cmdline-options.h | |
parent | 2ff39a367738422c0ca1313cac8ff380e1fdd498 (diff) | |
download | external_qemu-ae835acc2d1a8b4aaeb599add9cfc02ea5789eaf.zip external_qemu-ae835acc2d1a8b4aaeb599add9cfc02ea5789eaf.tar.gz external_qemu-ae835acc2d1a8b4aaeb599add9cfc02ea5789eaf.tar.bz2 |
Add command line flag to show list of snapshots.
This patch introduces the flag '-snapshot-list', which causes the
emulator to output a table of snapshots in the currently mounted
snapshot storage file.
The snapshot file is accessed with a very simple driver for the Qcow2
file system, independent of Qemu's block driver framework. This way,
the flag is available in the emulator-ui builds as well. Using Qemu's
framework would have resulted in adding a lot of Qemu dependencies to
the UI build, which we are explicitly trying to avoid.
Change-Id: I059b9ac53e2f8e051757a5c637761eccf8ea17cb
Diffstat (limited to 'android/cmdline-options.h')
-rw-r--r-- | android/cmdline-options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/cmdline-options.h b/android/cmdline-options.h index a9b02ac..da8f375 100644 --- a/android/cmdline-options.h +++ b/android/cmdline-options.h @@ -81,6 +81,7 @@ OPT_PARAM( snapstorage, "<file>", "file that contains all state snapshots (de OPT_FLAG ( no_snapstorage, "do not mount a snapshot storage file (this disables all snapshot functionality)" ) OPT_PARAM( snapshot, "<name>", "immediately load state snapshot rather than doing a full boot (default 'default-boot')" ) OPT_FLAG ( no_snapshot, "do not start from snapshot, but perform a full boot sequence" ) +OPT_FLAG ( snapshot_list, "show a list of available snapshots" ) #endif OPT_FLAG ( wipe_data, "reset the use data image (copy it from initdata)" ) CFG_PARAM( avd, "<name>", "use a specific android virtual device" ) |