diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-06-28 12:19:15 +0100 |
---|---|---|
committer | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-06-28 12:19:15 +0100 |
commit | 4369b25867a0a05aa0b1e89d3c3ab1e942b4daeb (patch) | |
tree | 5a372be09b2c18caa1c39123cce007ccfd6f72f5 /tools/libxl/xl.h | |
parent | 74f917afa34d2e2699fc9fee7fe43c3fe81768ae (diff) | |
download | xen-4369b25867a0a05aa0b1e89d3c3ab1e942b4daeb.tar.gz xen-4369b25867a0a05aa0b1e89d3c3ab1e942b4daeb.tar.bz2 xen-4369b25867a0a05aa0b1e89d3c3ab1e942b4daeb.zip |
xl: new global -N option for dry run
This sets a global dryrun_only variable, which individual commands are
expected to honour. To avoid accidents, we introduce a new can_dryrun
member in the command table, which is initially set to 0 for each
command.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.h')
-rw-r--r-- | tools/libxl/xl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/xl.h b/tools/libxl/xl.h index bce135abb0..04f9045ff0 100644 --- a/tools/libxl/xl.h +++ b/tools/libxl/xl.h @@ -20,6 +20,7 @@ struct cmd_spec { char *cmd_name; int (*cmd_impl)(int argc, char **argv); + int can_dryrun; char *cmd_desc; char *cmd_usage; char *cmd_option; @@ -103,6 +104,7 @@ extern xentoollog_logger_stdiostream *logger; /* global options */ extern int autoballoon; +extern int dryrun_only; extern char *lockfile; extern char *default_vifscript; |