mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix global locking in PV reporting commands (2.02.49).
This commit is contained in:
parent
c2d4398d47
commit
3c0cfa8f3c
@ -1,5 +1,6 @@
|
||||
Version 2.02.52 -
|
||||
=================================
|
||||
Fix global locking in PV reporting commands (2.02.49).
|
||||
Fix pvcreate string termination in duplicate uuid warning message.
|
||||
Fix pvcreate on a partition (2.02.51).
|
||||
Fix vgcfgrestore error paths when locking fails (2.02.49).
|
||||
|
@ -643,7 +643,7 @@ int process_each_pv(struct cmd_context *cmd, int argc, char **argv,
|
||||
|
||||
dm_list_init(&tags);
|
||||
|
||||
if (lock_global && !lock_vol(cmd, VG_GLOBAL, LCK_READ)) {
|
||||
if (lock_global && !lock_vol(cmd, VG_GLOBAL, LCK_VG_READ)) {
|
||||
log_error("Unable to obtain global lock.");
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user