forked from pmem/ndctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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]>
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters