-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create-ns: align the namespaces to 1Mib boundaries when using SI suff…
…ixes Some controllers refuse to create namespaces with a size not aligned to a 1 MiB boundary, this happens when using the -S and -C options. $ nvme create-ns /dev/nvme0 -S 80M -C 80M -f 0 NVMe status: Invalid Field in Command: A reserved coded value or an unsupported value in a defined field(0x2) Fix this problem by modifying create_ns() parse_lba_num_si() to align the values to 1 MiB boundaries. If granularity is supported, we will use the specified values, if they are smaller than 1 MiB. Signed-off-by: Maurizio Lombardi <[email protected]>
- Loading branch information
1 parent
36e2535
commit 3d1243e
Showing
2 changed files
with
64 additions
and
6 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