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:
parent
93c9055591
commit
ff4827ffb1
@ -829,7 +829,7 @@ static int _round_down_pow2(int r)
|
|||||||
return r & ~(r >> 1);
|
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 pagesize = lvm_getpagesize();
|
||||||
int region_size = _get_default_region_size(cmd);
|
int region_size = _get_default_region_size(cmd);
|
||||||
@ -846,7 +846,7 @@ int get_default_region_size(struct cmd_context *cmd)
|
|||||||
region_size / 2);
|
region_size / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
return region_size;
|
return (uint32_t) region_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
int add_seg_to_segs_using_this_lv(struct logical_volume *lv,
|
int add_seg_to_segs_using_this_lv(struct logical_volume *lv,
|
||||||
|
@ -1152,7 +1152,7 @@ int vg_max_lv_reached(struct volume_group *vg);
|
|||||||
/*
|
/*
|
||||||
* Mirroring functions
|
* 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);
|
struct lv_segment *find_mirror_seg(struct lv_segment *seg);
|
||||||
int lv_add_mirrors(struct cmd_context *cmd, struct logical_volume *lv,
|
int lv_add_mirrors(struct cmd_context *cmd, struct logical_volume *lv,
|
||||||
uint32_t mirrors, uint32_t stripes, uint32_t stripe_size,
|
uint32_t mirrors, uint32_t stripes, uint32_t stripe_size,
|
||||||
|
Loading…
Reference in New Issue
Block a user