summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2015-06-17 14:27:48 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2015-06-17 14:27:48 +0200
commit0a203070f5189a53f764e1e6e960ac70acfad5a9 (patch)
tree5abaaa8a7b5ff1d3e7f2102e5095c860c499c6fd
parent5577f2f4f0a5518662b9cedb6a373ccb67a71917 (diff)
downloadlvm2-0a203070f5189a53f764e1e6e960ac70acfad5a9.tar.gz
cleanup: missing target_type check in device_is_usable filter
-rw-r--r--lib/activate/dev_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index 43e006a4c..f4b2a4a74 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -638,7 +638,7 @@ int device_is_usable(struct device *dev, struct dev_usable_check_params check)
* correctly, not just snapshots but any cobimnation possible
* in a stack - use proper dm tree to check this instead.
*/
- if (check.check_suspended &&
+ if (check.check_suspended && target_type &&
(!strcmp(target_type, "snapshot") || !strcmp(target_type, "snapshot-origin")) &&
_ignore_suspended_snapshot_component(dev)) {
log_debug_activation("%s: %s device %s not usable.", dev_name(dev), target_type, name);