LVM2 ./WHATS_NEW daemons/dmeventd/dmeventd.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-02-28 19:47:23
Modified files:
. : WHATS_NEW
daemons/dmeventd: dmeventd.c
Log message:
Test result of dm_task_set_uuid
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1930&r2=1.1931
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/dmeventd.c.diff?cvsroot=lvm2&r1=1.74&r2=1.75
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.85 - =================================== + Add test for failed allocation from dm_task_set_uuid() in dmeventd. Improve pvremove error message when PV belongs to a VG. Extend normal policy to allow mirror logs on same PVs as images if necessary. Improve cling policy to recognise PVs already used during the transaction.
daemons/dmeventd/dmeventd.c +5 -2
@@ -387,7 +387,9 @@if (!dmt)return 0 ; -dm_task_set_uuid (dmt, ts->device.uuid); +if (!dm_task_set_uuid (dmt, ts->device.uuid)) + goto fail; +if (!dm_task_run (dmt)) goto fail;
@@ -732,7 +734,8 @@if (!dmt)return NULL ; -dm_task_set_uuid (dmt, ts->device.uuid); +if (!dm_task_set_uuid (dmt, ts->device.uuid)) +return NULL ;if (!dm_task_run (dmt)) {dm_task_destroy (dmt);