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

fix clvmd lv_info_by_lvid open_count

This commit is contained in:
Alasdair Kergon 2005-01-19 18:10:09 +00:00
parent 68e4adb561
commit 5d0b9f475a
3 changed files with 6 additions and 5 deletions

View File

@ -1 +1 @@
2.01.01-cvs (2005-01-17)
2.01.01-cvs (2005-01-19)

View File

@ -1,5 +1,6 @@
Version 2.01.01 -
Version 2.01.01 - 19th January 2005
===================================
Fix clvmd lv_info_by_lvid open_count.
Store snapshot and origin sizes separately.
Update vgcreate man page.

View File

@ -198,7 +198,7 @@ static int do_activate_lv(char *resource, int mode)
return errno;
/* If it's suspended then resume it */
if (!lv_info_by_lvid(cmd, resource, &lvi))
if (!lv_info_by_lvid(cmd, resource, &lvi, 0))
return EIO;
if (lvi.suspended)
@ -244,7 +244,7 @@ static int do_suspend_lv(char *resource)
}
/* Only suspend it if it exists */
if (!lv_info_by_lvid(cmd, resource, &lvi))
if (!lv_info_by_lvid(cmd, resource, &lvi, 0))
return EIO;
if (lvi.exists) {
@ -363,7 +363,7 @@ int post_lock_lv(unsigned char command, unsigned char lock_flags,
if (oldmode == LKM_PWMODE) {
struct lvinfo lvi;
if (!lv_info_by_lvid(cmd, resource, &lvi))
if (!lv_info_by_lvid(cmd, resource, &lvi, 0))
return EIO;
if (lvi.exists) {