mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
remove unused backgroundfork option
This commit is contained in:
parent
814cff0c20
commit
3ca8ed66a7
@ -932,16 +932,11 @@ arg(activevolumegroups_ARG, 'A', "activevolumegroups", 0, 0, 0,
|
||||
"Only select active VGs. The VG is considered active\n"
|
||||
"if at least one of its LVs is active.\n")
|
||||
|
||||
/* FIXME: remove background option from pvscan, it's not used */
|
||||
|
||||
arg(background_ARG, 'b', "background", 0, 0, 0,
|
||||
"If the operation requires polling, this option causes the command to\n"
|
||||
"return before the operation is complete, and polling is done in the\n"
|
||||
"background.\n")
|
||||
|
||||
/* Not used */
|
||||
arg(backgroundfork_ARG, 'b', "background", 0, 0, 0, NULL)
|
||||
|
||||
arg(basevgname_ARG, 'n', "basevgname", string_VAL, 0, 0,
|
||||
"By default the snapshot VG will be renamed to the original name plus a\n"
|
||||
"numeric suffix to avoid duplicate naming (e.g. 'test_vg' would be renamed\n"
|
||||
|
@ -2825,14 +2825,6 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv)
|
||||
|
||||
set_cmd_name(cmd->name);
|
||||
|
||||
if (arg_is_set(cmd, backgroundfork_ARG)) {
|
||||
if (!become_daemon(cmd, 1)) {
|
||||
/* parent - quit immediately */
|
||||
ret = ECMD_PROCESSED;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
if (arg_is_set(cmd, config_ARG))
|
||||
if (!override_config_tree_from_string(cmd, arg_str_value(cmd, config_ARG, ""))) {
|
||||
ret = EINVALID_CMD_LINE;
|
||||
|
Loading…
Reference in New Issue
Block a user