master - tidy: declaration names match implementation
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=876c4a1b3bdf2d2f9202438a406a803efa01bf9a Commit: 876c4a1b3bdf2d2f9202438a406a803efa01bf9a Parent: 39ebacdb5a4df1c9e1ef1258082de40d0bff1cba Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jul 20 19:13:32 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Jul 20 19:16:41 2017 +0200
tidy: declaration names match implementation
Put in sync some naming used for function declaration and actual in-code implementation.
--- lib/activate/activate.h | 6 ++-- lib/cache/lvmcache.h | 2 +- lib/format_text/import-export.h | 2 +- lib/metadata/lv.h | 2 +- lib/metadata/lv_alloc.h | 16 +++++++------- lib/metadata/metadata-exported.h | 42 +++++++++++++++++++------------------- lib/metadata/metadata.h | 18 ++++++++-------- lib/metadata/pv.h | 2 +- lib/metadata/pv_map.h | 2 +- 9 files changed, 46 insertions(+), 46 deletions(-)
lib/activate/activate.h +3 -3
@@ -174,7 +174,7 @@ int lv_raid_dev_health(const struct logical_volume *lv, char **dev_health);int lv_raid_mismatch_count (const struct logical_volume *lv,uint64_t *cnt);int lv_raid_sync_action (const struct logical_volume *lv,char **sync_action);int lv_raid_message (const struct logical_volume *lv,const char *msg); -int lv_cache_status (const struct logical_volume *lv, +int lv_cache_status (const struct logical_volume *cache_lv,struct lv_status_cache **status);int lv_thin_pool_percent (const struct logical_volume *lv,int metadata,dm_percent_t *percent);
@@ -202,12 +202,12 @@ int lv_has_target_type(struct dm_pool *mem, const struct logical_volume *lv, const char *layer, const char *target_type);int monitor_dev_for_events (struct cmd_context *cmd,const struct logical_volume *lv, -const struct lv_activate_opts *laopts,int do_reg); +const struct lv_activate_opts *laopts,int monitor);#ifdef DMEVENTD # include "libdevmapper-event.h" char *get_monitor_dso_path (struct cmd_context *cmd,const char *libpath); -int target_registered_with_dmeventd (struct cmd_context *cmd,const char *libpath, +int target_registered_with_dmeventd (struct cmd_context *cmd,const char *dso,const struct logical_volume *lv,int *pending);int target_register_events (struct cmd_context *cmd,const char *dso,const struct logical_volume *lv,int evmask __attribute__((unused)),int set,int timeout);
lib/cache/lvmcache.h +1 -1
@@ -181,7 +181,7 @@ int lvmcache_foreach_ba(struct lvmcache_info *info,int (*fun)(struct disk_locn *,void *), void *baton); -int lvmcache_foreach_pv (struct lvmcache_vginfo *vg, +int lvmcache_foreach_pv (struct lvmcache_vginfo *vginfo,int (*fun)(struct lvmcache_info *,void *),void * baton);uint64_t lvmcache_device_size (struct lvmcache_info *info);
lib/format_text/import-export.h +1 -1
@@ -64,7 +64,7 @@ int print_flags(char *buffer, size_t size, enum pv_vg_lv_e type, int mask, uint6int read_flags (uint64_t *status,enum pv_vg_lv_e type,int mask,const struct dm_config_value *cv);int print_segtype_lvflags (char *buffer,size_t size,uint64_t status); -int read_segtype_lvflags (uint64_t *status,char *segtype_scr); +int read_segtype_lvflags (uint64_t *status,char *segtype_str);int text_vg_export_file (struct volume_group *vg,const char *desc,FILE *fp);size_t text_vg_export_raw (struct volume_group *vg,const char *desc,char **buf);
lib/metadata/lv.h +1 -1
@@ -157,7 +157,7 @@ char *lvseg_kernel_discards_dup(struct dm_pool *mem, const struct lv_segment *seint lv_set_creation (struct logical_volume *lv,const char *hostname,uint64_t timestamp);int lv_active_change (struct cmd_context *cmd,struct logical_volume *lv, -enum activation_change activate,int needs_exlusive); +enum activation_change activate,int needs_exclusive);/* LV dup functions */ char *lv_attr_dup_with_info_and_seg_status (struct dm_pool *mem,const struct lv_with_info_and_seg_status *lvdm);
lib/metadata/lv_alloc.h +8 -8
@@ -47,20 +47,20 @@ int release_and_discard_lv_segment_area(struct lv_segment *seg, uint32_t s, uintstruct alloc_handle ;struct alloc_handle *allocate_extents (struct volume_group *vg,struct logical_volume *lv, -const struct segment_type *segtype, -uint32_t stripes, -uint32_t mirrors,uint32_t log_count, -uint32_t log_region_size,uint32_t extents, -struct dm_list *allocatable_pvs, +const struct segment_type *segtype, +uint32_t stripes, +uint32_t mirrors,uint32_t log_count, +uint32_t region_size,uint32_t extents, +struct dm_list *allocatable_pvs,alloc_policy_t alloc,int approx_alloc,struct dm_list *parallel_areas);int lv_add_segment (struct alloc_handle *ah,uint32_t first_area,uint32_t num_areas,struct logical_volume *lv, -const struct segment_type *segtype, -uint32_t stripe_size, -uint64_t status, +const struct segment_type *segtype, +uint32_t stripe_size, +uint64_t status,uint32_t region_size); int lv_add_mirror_areas(struct alloc_handle *ah,
lib/metadata/metadata-exported.h +21 -21
124 lines not on this page · raw message
lib/metadata/metadata.h +9 -9
@@ -172,7 +172,7 @@ struct metadata_area *mda_copy(struct dm_pool *mem, struct metadata_area *mda);unsigned mda_is_ignored (struct metadata_area *mda); -void mda_set_ignored (struct metadata_area *mda,unsigned ignored); +void mda_set_ignored (struct metadata_area *mda,unsigned mda_ignored);unsigned mda_locns_match (struct metadata_area *mda1,struct metadata_area *mda2);struct device *mda_get_device (struct metadata_area *mda);
@@ -405,7 +405,7 @@ int check_new_thin_pool(const struct logical_volume *pool_lv);/* * Remove a dev_dir if present. */ -const char *strip_dir (const char *vg_name,const char *dir); +const char *strip_dir (const char *vg_name,const char *dev_dir);struct logical_volume *alloc_lv (struct dm_pool *mem);
@@ -423,7 +423,7 @@ int lv_has_constant_stripes(struct logical_volume *lv);/* * Checks that a replicator segment is correct. */ -int check_replicator_segment (const struct lv_segment *replicator_seg); +int check_replicator_segment (const struct lv_segment *rseg);/* * Sometimes (eg, after an lvextend), it is possible to merge two
@@ -446,9 +446,9 @@ int remove_seg_from_segs_using_this_lv(struct logical_volume *lv, struct lv_segmint add_glv_to_indirect_glvs (struct dm_pool *mem,struct generic_logical_volume *origin_glv, -struct generic_logical_volume *user_glv); -int remove_glv_from_indirect_glvs (struct generic_logical_volume *glv, -struct generic_logical_volume *user_glv); +struct generic_logical_volume *glv); +int remove_glv_from_indirect_glvs (struct generic_logical_volume *origin_glv, +struct generic_logical_volume *glv); int for_each_sub_lv_except_pools(struct logical_volume *lv, int (*fn)(struct logical_volume *lv, void *data),
@@ -491,20 +491,20 @@ int fixup_imported_mirrors(struct volume_group *vg);* From thin_manip.c */ int attach_pool_lv (struct lv_segment *seg,struct logical_volume *pool_lv, -struct logical_volume *origin_lv, +struct logical_volume *origin,struct generic_logical_volume *indirect_origin,struct logical_volume *merge_lv);int detach_pool_lv (struct lv_segment *seg);int attach_pool_message (struct lv_segment *pool_seg,dm_thin_message_t type,struct logical_volume *lv,uint32_t delete_id, -int auto_increment); +int no_update);int lv_is_merging_thin_snapshot (const struct logical_volume *lv);int pool_has_message (const struct lv_segment *seg,const struct logical_volume *lv,uint32_t device_id);int pool_metadata_min_threshold (const struct lv_segment *pool_seg);int pool_below_threshold (const struct lv_segment *pool_seg);int pool_check_overprovisioning (const struct logical_volume *lv); -int create_pool (struct logical_volume *lv,const struct segment_type *segtype, +int create_pool (struct logical_volume *pool_lv,const struct segment_type *segtype,struct alloc_handle *ah,uint32_t stripes,uint32_t stripe_size);/*
lib/metadata/pv.h +1 -1
@@ -93,7 +93,7 @@ uint64_t pv_mda_free(const struct physical_volume *pv);uint64_t pv_used (const struct physical_volume *pv);uint32_t pv_mda_count (const struct physical_volume *pv);uint32_t pv_mda_used_count (const struct physical_volume *pv); -unsigned pv_mda_set_ignored (const struct physical_volume *pv,unsigned ignored); +unsigned pv_mda_set_ignored (const struct physical_volume *pv,unsigned mda_ignored);int is_orphan (const struct physical_volume *pv);int is_missing_pv (const struct physical_volume *pv);int is_used_pv (const struct physical_volume *pv);
lib/metadata/pv_map.h +1 -1
@@ -65,7 +65,7 @@ struct pv_map {struct dm_list *create_pv_maps (struct dm_pool *mem,struct volume_group *vg,struct dm_list *allocatable_pvs); -void consume_pv_area (struct pv_area *area,uint32_t to_go); +void consume_pv_area (struct pv_area *pva,uint32_t to_go);void reinsert_changed_pv_area (struct pv_area *pva);uint32_t pv_maps_size (struct dm_list *pvms);