mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
pvck: add lock_global() before clean_hint_file()
Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
This commit is contained in:
parent
17b2746486
commit
8331321070
@ -3037,6 +3037,9 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
|
||||
if (arg_is_set(cmd, repairtype_ARG) || arg_is_set(cmd, repair_ARG)) {
|
||||
pv_name = argv[0];
|
||||
|
||||
if (!lock_global(cmd, "ex"))
|
||||
return ECMD_FAILED;
|
||||
|
||||
clear_hint_file(cmd);
|
||||
|
||||
if (!setup_device(cmd, pv_name)) {
|
||||
|
Loading…
Reference in New Issue
Block a user