Skip to contentSkip to conversation

dev-mornfall-activate - dmeventd: use dm_get_status_snapshot()

PATCH Petr Rockai 1 participant 1 message Jun 4, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e992cb253cb4c9bf027dd7852d4399d2b439621c
Commit:        e992cb253cb4c9bf027dd7852d4399d2b439621c
Parent:        06e8ff29ff59a1893312f5b2d5e818c8c62ee7b1
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun May 26 17:07:08 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon May 27 10:33:06 2013 +0200

dmeventd: use dm_get_status_snapshot()

Switch to use libdm dm_get_status_snapshot() function for reading status info.
This fixes bug, where the code was using 32bit integers, while the snapshot target is able to return 64bit sizes. However this also means, someone is using >1TB snapshot cow devices, which is actually very bad idea anyway, since the perfomance and memory usage in this case is very bad.

---
 WHATS_NEW_DM                                       |    1 +
 .../dmeventd/plugins/snapshot/dmeventd_snapshot.c  |   79 ++++++--------------
 2 files changed, 24 insertions(+), 56 deletions(-)
WHATS_NEW_DM +1 -0
index 99e8269..6dcf9f8 100644
@@ -1,5 +1,6 @@
 Version 1.02.78 - 
 ===================================
+  Fix parsing of 64bit snapshot status in dmeventd snapshot plugin.
   Add dm_get_status_snapshot() for parsing snapshot status.
   Detecte mounted fs also via reading /proc/self/mountinfo.
   Add dm_mountinfo_read() for parsing /proc/self/mountinfo.
daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c +23 -56

159 lines not on this page · raw message