diff options
author | Alasdair Kergon <agk@redhat.com> | 2001-11-28 18:03:11 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2001-11-28 18:03:11 +0000 |
commit | c2d72fd4025cc0411998e87d1eb5fc3ed698d17b (patch) | |
tree | c2b670a4147b78bee2bf176a765ff429e223b241 /tools/lvm.c | |
parent | 6c4ee2960572616918bdd5b50945cdf3c5414d51 (diff) | |
download | lvm2-c2d72fd4025cc0411998e87d1eb5fc3ed698d17b.tar.gz lvm2-c2d72fd4025cc0411998e87d1eb5fc3ed698d17b.tar.xz lvm2-c2d72fd4025cc0411998e87d1eb5fc3ed698d17b.zip |
Add -t or --test arg to all tools that update metadata to avoid
committing metadata changes or (de)activating.
Diffstat (limited to 'tools/lvm.c')
-rw-r--r-- | tools/lvm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/lvm.c b/tools/lvm.c index 7f654d78..f1424463 100644 --- a/tools/lvm.c +++ b/tools/lvm.c @@ -479,7 +479,10 @@ static int process_common_commands(struct command *com) init_verbose(arg_count(verbose_ARG)); - init_test(arg_count(test_ARG)); + if ((l = arg_count(test_ARG))) { + log_error("Test mode. Metadata will NOT be updated."); + init_test(l); + } if (arg_count(help_ARG)) { usage(com->name); |