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);
region_size / 2);
}
- return region_size;
+ return (uint32_t) region_size;
}
int add_seg_to_segs_using_this_lv(struct logical_volume *lv,
/*
* 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,