diff --git a/tools/args.h b/tools/args.h index 4b89ebd72..c5e4d148e 100644 --- a/tools/args.h +++ b/tools/args.h @@ -114,6 +114,7 @@ arg(all_ARG, 'a', "all", NULL, 0) arg(autobackup_ARG, 'A', "autobackup", yes_no_arg, 0) arg(activevolumegroups_ARG, 'A', "activevolumegroups", NULL, 0) arg(background_ARG, 'b', "background", NULL, 0) +arg(backgroundfork_ARG, 'b', "background", NULL, 0) arg(blockdevice_ARG, 'b', "blockdevice", NULL, 0) arg(chunksize_ARG, 'c', "chunksize", size_kb_arg, 0) arg(clustered_ARG, 'c', "clustered", yes_no_arg, 0) diff --git a/tools/commands.h b/tools/commands.h index ef7848da9..a8623bf51 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -736,7 +736,7 @@ xx(pvscan, "\t[-v|--verbose] " "\n" "\t[--version]\n", - activate_ARG, available_ARG, background_ARG, cache_ARG, + activate_ARG, available_ARG, backgroundfork_ARG, cache_ARG, exported_ARG, ignorelockingfailure_ARG, major_ARG, minor_ARG, novolumegroup_ARG, partial_ARG, short_ARG, uuid_ARG) diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index dc5d59245..c7917ea13 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -1097,7 +1097,7 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv) set_cmd_name(cmd->command->name); - if (arg_count(cmd, background_ARG)) { + if (arg_count(cmd, backgroundfork_ARG)) { if (!become_daemon(cmd, 1)) { /* parent - quit immediately */ ret = ECMD_PROCESSED;