master - cleanup: indent
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=48ed8ac50cd0c384c3ff4e5e7dbc79b8f1c24cef Commit: 48ed8ac50cd0c384c3ff4e5e7dbc79b8f1c24cef Parent: ece758457de0c5a40b5b33b90cab2238de34d55e Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Jul 21 11:18:42 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Aug 12 14:33:16 2015 +0200
cleanup: indent
--- lib/cache_segtype/cache.c | 4 ++-- lib/metadata/lv_manip.c | 3 ++- libdm/libdm-deptree.c | 2 -- 3 files changed, 4 insertions(+), 5 deletions(-)
lib/cache_segtype/cache.c +2 -2
@@ -170,8 +170,8 @@ static void _destroy(struct segment_type *segtype)#ifdef DEVMAPPER_SUPPORT static int _target_present (struct cmd_context *cmd, -const struct lv_segment *seg __attribute__((unused)), -unsigned *attributes __attribute__((unused))) +const struct lv_segment *seg __attribute__((unused)), +unsigned *attributes __attribute__((unused))) {/* List of features with their kernel target version */ static const struct feature {
lib/metadata/lv_manip.c +2 -1
@@ -6998,7 +6998,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,if (seg_is_pool (lp)) status |=LVM_WRITE ;/* Pool is always writable */ -else if (seg_is_cache (lp) ||seg_is_thin_volume (lp)) { +else if (seg_is_cache (lp) ||seg_is_thin_volume (lp)) {/* Resolve pool volume */ if (!lp->pool_name) {/* Should be already checked */
@@ -7222,6 +7222,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,if (!archive (vg)) return_NULL; +if (pool_lv &&seg_is_thin_volume (lp)) {/* Ensure all stacked messages are submitted */ if ((pool_is_active(pool_lv) || is_change_activating(lp->activate)) &&
libdm/libdm-deptree.c +0 -2
@@ -3405,7 +3405,6 @@ int dm_tree_node_add_cache_target(struct dm_tree_node *node,if (!_link_tree_nodes (node, seg->metadata)) return_0; -if (!(seg->origin =dm_tree_find_node_by_uuid (node->dtree, origin_uuid))) { log_error("Missing cache's origin uuid %s.",
@@ -3434,7 +3433,6 @@ int dm_tree_node_add_cache_target(struct dm_tree_node *node, } } -return 1 ; }