diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-23 22:41:57 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-23 22:41:57 +0000 |
commit | 499a161640138ad0315a2b8b2fc9c9f7833b82b3 (patch) | |
tree | 594f590c937c4ce6dddbd5c025dfce8c60534fa4 /lib/activate/activate.h | |
parent | 980cf7959c6c05b1135749148d73cc2d55a8aa1e (diff) | |
download | lvm2-499a161640138ad0315a2b8b2fc9c9f7833b82b3.tar.gz |
Use const for lv
lv_is_active doesn't needs modifiable LV struct so keep it const.
Remove lv_send_message() left bits from code -
they were never released in 2.02.89.
Diffstat (limited to 'lib/activate/activate.h')
-rw-r--r-- | lib/activate/activate.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/activate/activate.h b/lib/activate/activate.h index b866fd552..ccea99191 100644 --- a/lib/activate/activate.h +++ b/lib/activate/activate.h @@ -111,14 +111,14 @@ int lv_thin_pool_transaction_id(const struct logical_volume *lv, /* * Return number of LVs in the VG that are active. */ -int lvs_in_vg_activated(struct volume_group *vg); +int lvs_in_vg_activated(const struct volume_group *vg); int lvs_in_vg_opened(const struct volume_group *vg); -int lv_is_active(struct logical_volume *lv); -int lv_is_active_but_not_locally(struct logical_volume *lv); -int lv_is_active_exclusive(struct logical_volume *lv); -int lv_is_active_exclusive_locally(struct logical_volume *lv); -int lv_is_active_exclusive_remotely(struct logical_volume *lv); +int lv_is_active(const struct logical_volume *lv); +int lv_is_active_but_not_locally(const struct logical_volume *lv); +int lv_is_active_exclusive(const struct logical_volume *lv); +int lv_is_active_exclusive_locally(const struct logical_volume *lv); +int lv_is_active_exclusive_remotely(const struct logical_volume *lv); int lv_has_target_type(struct dm_pool *mem, struct logical_volume *lv, const char *layer, const char *target_type); |