mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
pvck: Use non-zero exit status after failure.
This commit is contained in:
parent
c3e2990359
commit
efe5245e47
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.113 -
|
Version 2.02.113 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Exit with non-zero status code when pvck encounters a problem.
|
||||||
Fix clean_tree after activation/resume for cache target (2.02.112).
|
Fix clean_tree after activation/resume for cache target (2.02.112).
|
||||||
|
|
||||||
Version 2.02.112 - 11th November 2014
|
Version 2.02.112 - 11th November 2014
|
||||||
|
12
tools/pvck.c
12
tools/pvck.c
@ -18,9 +18,11 @@
|
|||||||
int pvck(struct cmd_context *cmd, int argc, char **argv)
|
int pvck(struct cmd_context *cmd, int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
int ret_max = ECMD_PROCESSED;
|
||||||
|
|
||||||
/* FIXME: validate cmdline options */
|
/* FIXME: validate cmdline options */
|
||||||
/* FIXME: what does the cmdline look like? */
|
/* FIXME: what does the cmdline look like? */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use what's on the cmdline directly, and avoid calling into
|
* Use what's on the cmdline directly, and avoid calling into
|
||||||
* some of the other infrastructure functions, so as to avoid
|
* some of the other infrastructure functions, so as to avoid
|
||||||
@ -32,10 +34,12 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
log_verbose("Scanning %s", argv[i]);
|
log_verbose("Scanning %s", argv[i]);
|
||||||
|
|
||||||
dm_unescape_colons_and_at_signs(argv[i], NULL, NULL);
|
dm_unescape_colons_and_at_signs(argv[i], NULL, NULL);
|
||||||
pv_analyze(cmd, argv[i],
|
if (!pv_analyze(cmd, argv[i],
|
||||||
arg_uint64_value(cmd, labelsector_ARG,
|
arg_uint64_value(cmd, labelsector_ARG, UINT64_C(0)))) {
|
||||||
UINT64_C(0)));
|
stack;
|
||||||
|
ret_max = ECMD_FAILED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ECMD_PROCESSED;
|
return ret_max;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user