-
Notifications
You must be signed in to change notification settings - Fork 697
Open
Description
When running any of the nvme tests, a controller that supports Namespace Granularity Attribute will fail in setUp(), with the call chain create_and_validate_ns() -> create-ns(). The create-ns command is run with --verbose option, which will elevate the log level to INFO, and thus the "enforce [nsze|ncap] alignment to %PRIx64 because of namespace granularity requirement" message will print every time. This causes the json parsing to fail.
Here, I print the command and the stdout:
nvme create-ns /dev/nvme0 --nsze=3750748848 --ncap=3750748848 --flbas=0 --dps=0 --verbose --output-format=json
enforce nsze alignment to 200 because of namespace granularity requirements
enforce ncap alignment to 200 because of namespace granularity requirements
{
"create-ns":"success",
"nsid":"1"
}
I'd be happy to fix this, but am looking for direction. Couple of solutions:
- Drop the
--verboseoption in nvme_test.py - Only print the "enforce..." strings for normal output in nvme.c
Any preferences?
Metadata
Metadata
Assignees
Labels
No labels