1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

thin: accept const struct

This commit is contained in:
Zdenek Kabelac 2014-01-08 10:27:17 +01:00
parent de3abfa622
commit 95b1af7280
2 changed files with 2 additions and 2 deletions

View File

@ -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, uint64_t extents_from_size(struct cmd_context *cmd, uint64_t size,
uint32_t extent_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_is_active(const struct logical_volume *pool_lv);
int pool_can_resize_metadata(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); int update_pool_lv(struct logical_volume *lv, int activate);

View File

@ -392,7 +392,7 @@ struct lv_segment *find_pool_seg(const struct lv_segment *seg)
return pool_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; struct lv_segment *seg;