Skip to content

Commit

Permalink
Bug fix for recommending zvol blocksize
Browse files Browse the repository at this point in the history
This commit fixes an issue where we are not sending 'K' suffix with the recommended blocksize which we were doing before and this results in change in behavior with existing implementation in UI/middleware breaking.
  • Loading branch information
sonicaj committed Jul 2, 2021
1 parent 386b224 commit 4e28818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/pool.py
Expand Up @@ -4040,7 +4040,7 @@ async def recommended_zvol_blocksize(self, pool):
if disks > maxdisks:
maxdisks = disks

return f'{max(16, min(128, 2 ** ((maxdisks * 8) - 1).bit_length()))}'
return f'{max(16, min(128, 2 ** ((maxdisks * 8) - 1).bit_length()))}K'

@item_method
@accepts(Str('id', required=True))
Expand Down

0 comments on commit 4e28818

Please sign in to comment.