Version 2.02.174 -
=================================
+ Introduce exit code 4 EINIT_FAILED to replace -1 when initialisation fails.
Add synchronization points with udev during reshape of raid LVs.
Version 2.02.173 - 20th July 2017
#define LVM2_COMMAND_SUCCEEDED 1 /* ECMD_PROCESSED */
#define LVM2_NO_SUCH_COMMAND 2 /* ENO_SUCH_CMD */
#define LVM2_INVALID_PARAMETERS 3 /* EINVALID_CMD_LINE */
+#define LVM2_INIT_FAILED 4 /* EINIT_FAILED */
#define LVM2_PROCESSING_FAILED 5 /* ECMD_FAILED */
/*
const char *run_command_name = NULL;
if (!argv)
- return -1;
+ return EINIT_FAILED;
base = last_path_component(argv[0]);
if (strcmp(base, "lvm") && strcmp(base, "lvm.static") &&
alias = 1;
if (!_check_standard_fds())
- return -1;
+ return EINIT_FAILED;
if (!_get_custom_fds(&custom_fds))
- return -1;
+ return EINIT_FAILED;
if (!_close_stray_fds(base, &custom_fds))
- return -1;
+ return EINIT_FAILED;
if (!init_custom_log_streams(&custom_fds))
- return -1;
+ return EINIT_FAILED;
if (is_static() && strcmp(base, "lvm.static") &&
path_exists(LVM_PATH) &&
if (*argv[1] == '-') {
log_error("Specify options after a command: lvm [command] [options].");
- return -1;
+ return EINVALID_CMD_LINE;
}
}
if (!(cmd = init_lvm(0, 0)))
- return -1;
+ return EINIT_FAILED;
/* Store original argv location so we may customise it if we become a daemon */
cmd->argv = argv;