Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] create-namespace: Add percentage option #209

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 21, 2022

  1. [RFC] create-namespace: Add percentage option

    The size option of the create-namespace command can now take a percentage of
    the total region size as the desired size. E.g. :
    
    ndctl create-namespace  -s 50%
    
    will create a namespace using half of the total region size, assuming
    there is enough available capacity in the region for the request.
    
    Only whole percentages are correctly parsed at the moment e.g. 12%, but
    not 12.5%.
    
    Sizes that result in a misaligned size with regards to region alignment
    (default 16MB) are rounded down, unless the rounded-up size would result
    in using the full remaining region capacity available.
    
    Fixes: pmem#199
    Signed-off-by: Vasilis Liaskovitis <[email protected]>
    vliaskov committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    15a5482 View commit details
    Browse the repository at this point in the history