diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-01-19 18:10:09 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-01-19 18:10:09 +0000 |
commit | fdc49402ecc22e170b6ed6cb451087382d039943 (patch) | |
tree | fd634eabe5352b4a013c9239b4ae11b6fdbb12a4 | |
parent | 5457c133e1f617d76338e1fdf6bf77064d970646 (diff) | |
download | lvm2-2_01_01.tar.gz |
fix clvmd lv_info_by_lvid open_countv2_01_01old-v2_01_01
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | WHATS_NEW | 3 | ||||
-rw-r--r-- | daemons/clvmd/lvm-functions.c | 6 |
3 files changed, 6 insertions, 5 deletions
@@ -1 +1 @@ -2.01.01-cvs (2005-01-17) +2.01.01-cvs (2005-01-19) @@ -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. diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index 4e99cd32b..0aebde54e 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -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) { |