master - thin: accept const struct
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=95b1af72803336f8a2e559bae4eadefff9a48a7a Commit: 95b1af72803336f8a2e559bae4eadefff9a48a7a Parent: de3abfa6222c7c35f8262032112fea3b6098fd58 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jan 8 10:27:17 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Jan 8 11:57:43 2014 +0100
thin: accept const struct
--- lib/metadata/metadata-exported.h | 2 +- lib/metadata/thin_manip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/metadata/metadata-exported.h +1 -1
@@ -672,7 +672,7 @@ int lv_rename_update(struct cmd_context *cmd, struct logical_volume *lv,uint64_t extents_from_size (struct cmd_context *cmd,uint64_t size,uint32_t extent_size); -struct logical_volume *find_pool_lv (struct logical_volume *lv); +struct logical_volume *find_pool_lv (const struct logical_volume *lv);int pool_is_active (const struct logical_volume *pool_lv);int pool_can_resize_metadata (const struct logical_volume *pool_lv);int update_pool_lv (struct logical_volume *lv,int activate);
lib/metadata/thin_manip.c +1 -1
@@ -392,7 +392,7 @@ struct lv_segment *find_pool_seg(const struct lv_segment *seg)return pool_seg; } -struct logical_volume *find_pool_lv (struct logical_volume *lv) +struct logical_volume *find_pool_lv (const struct logical_volume *lv) {struct lv_segment *seg;