mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Test result of dm_task_set_uuid
This commit is contained in:
parent
683ef85a1e
commit
eba7348340
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.85 -
|
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.
|
Improve pvremove error message when PV belongs to a VG.
|
||||||
Extend normal policy to allow mirror logs on same PVs as images if necessary.
|
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.
|
Improve cling policy to recognise PVs already used during the transaction.
|
||||||
|
@ -387,7 +387,9 @@ static int _fill_device_data(struct thread_status *ts)
|
|||||||
if (!dmt)
|
if (!dmt)
|
||||||
return 0;
|
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))
|
if (!dm_task_run(dmt))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
@ -732,7 +734,8 @@ static struct dm_task *_get_device_status(struct thread_status *ts)
|
|||||||
if (!dmt)
|
if (!dmt)
|
||||||
return NULL;
|
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)) {
|
if (!dm_task_run(dmt)) {
|
||||||
dm_task_destroy(dmt);
|
dm_task_destroy(dmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user