From: Zdenek Kabelac Date: Wed, 8 Jan 2014 09:27:17 +0000 (+0100) Subject: thin: accept const struct X-Git-Tag: v2_02_105~26 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=95b1af72803336f8a2e559bae4eadefff9a48a7a;p=lvm2.git thin: accept const struct --- diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h index 6a959d18c..8e368918f 100644 --- a/lib/metadata/metadata-exported.h +++ b/lib/metadata/metadata-exported.h @@ -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); diff --git a/lib/metadata/thin_manip.c b/lib/metadata/thin_manip.c index 0223752bc..e12a8ad5b 100644 --- a/lib/metadata/thin_manip.c +++ b/lib/metadata/thin_manip.c @@ -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;