From 9b423ae6da86a09112335daddb16ca8c4ca45aac Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 14 Nov 2018 09:34:49 -0600 Subject: [PATCH] remove unused backgroundfork option --- tools/args.h | 5 ----- tools/lvmcmdline.c | 8 -------- 2 files changed, 13 deletions(-) diff --git a/tools/args.h b/tools/args.h index 6c82673e2..414d7a84b 100644 --- a/tools/args.h +++ b/tools/args.h @@ -929,16 +929,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" diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index b1d072353..29c357722 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -2824,14 +2824,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;