mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tools: Use backgroundfork_ARG for pvscan -b
Change pvscan -b to use a new backgroundfork_ARG instead of background_ARG so as not to affect pvmove -b and lvconvert -b.
This commit is contained in:
parent
374653f2b5
commit
5face2010d
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user