1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lv_manip: get_default_region_size return uint32_t

This commit is contained in:
Zdenek Kabelac 2020-08-28 20:07:34 +02:00
parent 93c9055591
commit ff4827ffb1
2 changed files with 3 additions and 3 deletions

View File

@ -829,7 +829,7 @@ static int _round_down_pow2(int r)
return r & ~(r >> 1);
}
int get_default_region_size(struct cmd_context *cmd)
uint32_t get_default_region_size(struct cmd_context *cmd)
{
int pagesize = lvm_getpagesize();
int region_size = _get_default_region_size(cmd);
@ -846,7 +846,7 @@ int get_default_region_size(struct cmd_context *cmd)
region_size / 2);
}
return region_size;
return (uint32_t) region_size;
}
int add_seg_to_segs_using_this_lv(struct logical_volume *lv,

View File

@ -1152,7 +1152,7 @@ int vg_max_lv_reached(struct volume_group *vg);
/*
* Mirroring functions
*/
int get_default_region_size(struct cmd_context *cmd); /* in lv_manip.c */
uint32_t get_default_region_size(struct cmd_context *cmd); /* in lv_manip.c */
struct lv_segment *find_mirror_seg(struct lv_segment *seg);
int lv_add_mirrors(struct cmd_context *cmd, struct logical_volume *lv,
uint32_t mirrors, uint32_t stripes, uint32_t stripe_size,