aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorJonathan Brassow <[email protected]>2012-12-21 20:23:33 +0000
committerAlasdair G Kergon <[email protected]>2012-12-21 20:23:33 +0000
commit3a0f9aaee02857609d79b20c809c02a8b7c39d06 (patch)
tree274ae68dfc2d955bb8f9a771388947e947b359b4 /lib/string_helpers.c
parent2aab38502d0e1bf6cf98183769e35a9ff999dcb1 (diff)
dm raid: round region_size to power of two
If the user does not supply a bitmap region_size to the dm raid target, a reasonable size is computed automatically. If this is not a power of 2, the md code will report an error later. This patch catches the problem early and rounds the region_size to the next power of two. Signed-off-by: Jonathan Brassow <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions