mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Avoid deptree attempting to suspend a device that's already suspended.
This commit is contained in:
parent
805dad5940
commit
b700541f3b
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.12 -
|
Version 1.02.12 -
|
||||||
==============================
|
==============================
|
||||||
|
Avoid deptree attempting to suspend a device that's already suspended.
|
||||||
|
|
||||||
Version 1.02.11 - 12 Oct 2006
|
Version 1.02.11 - 12 Oct 2006
|
||||||
==============================
|
==============================
|
||||||
|
@ -1028,7 +1028,7 @@ int dm_tree_suspend_children(struct dm_tree_node *dnode,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!_info_by_dev(dinfo->major, dinfo->minor, 0, &info) ||
|
if (!_info_by_dev(dinfo->major, dinfo->minor, 0, &info) ||
|
||||||
!info.exists)
|
!info.exists || info.suspended)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!_suspend_node(name, info.major, info.minor,
|
if (!_suspend_node(name, info.major, info.minor,
|
||||||
|
Loading…
Reference in New Issue
Block a user