1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

define LCK_NONE for cases when vg_lock_and_read already holds lock

(temporary - library will use internal ref counting instead)
This commit is contained in:
Alasdair Kergon 2007-11-15 02:55:22 +00:00
parent fed2f391ff
commit c6f8ef3814

View File

@ -86,6 +86,8 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname);
/*
* Common combinations
*/
#define LCK_NONE 0
#define LCK_VG_READ (LCK_VG | LCK_READ | LCK_HOLD)
#define LCK_VG_WRITE (LCK_VG | LCK_WRITE | LCK_HOLD)
#define LCK_VG_UNLOCK (LCK_VG | LCK_UNLOCK)