1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

Don't take write lock in vgchange --refresh, --poll or --monitor.

This commit is contained in:
Alasdair Kergon 2010-10-25 10:40:13 +00:00
parent 727d065f6e
commit c748bda186
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
Version 2.02.75 - Version 2.02.75 -
===================================== =====================================
Skip dm devices in scan if they contain only error targets. Don't take write lock in vgchange --refresh, --poll or --monitor.
Skip dm devices in scan if they contain only error targets or are empty.
Fix strict-aliasing compile warning in partition table scanning. Fix strict-aliasing compile warning in partition table scanning.
Add an option to automatically extend snapshots through dmeventd. Add an option to automatically extend snapshots through dmeventd.
Remove dependency on libm, floor() is replaced with integer algorithm. Remove dependency on libm, floor() is replaced with integer algorithm.

View File

@ -687,7 +687,10 @@ int vgchange(struct cmd_context *cmd, int argc, char **argv)
} }
return process_each_vg(cmd, argc, argv, return process_each_vg(cmd, argc, argv,
(arg_count(cmd, available_ARG)) ? (arg_count(cmd, available_ARG) ||
arg_count(cmd, refresh_ARG) ||
arg_count(cmd, monitor_ARG) ||
arg_count(cmd, poll_ARG)) ?
0 : READ_FOR_UPDATE, 0 : READ_FOR_UPDATE,
NULL, NULL,
&vgchange_single); &vgchange_single);