OS: Fedora 28
Kernel: 4.17.9-200.fc28.x86_64
ndctl version: 62
nmems: 3 x enabled, 1 x disabled
Issue
The check-labels command doesn't work when given a disabled nmem.
This particular system has 3 active/enabled and 1 'non-functional' (disabled) NVDIMMs. Whenever check-labels attempts to scan nmem1, we always get a successfully verified 0 nmem response which doesn't tell the user why the operation failed. It also fails when presented with one disabled and one or more active/enabled nmems which is not what a user would expect.
While the message is not entirely helpful, the response is expected. The message could be improved to indicate that the nmem is disabled. This would be very helpful in debugging situations.
Given nmem1 is disabled I would expect the check-label to ignore it and skip to the next one(s), but it doesn't. If we give check-labels a list of enabled and disabled nmems, it always silently fails
Config
OS: Fedora 28 Kernel: 4.17.9-200.fc28.x86_64 ndctl version: 62 nmems: 3 x enabled, 1 x disabled
Issue
The
check-labels
command doesn't work when given a disabled nmem.This particular system has 3 active/enabled and 1 'non-functional' (disabled) NVDIMMs. Whenever
check-labels
attempts to scan nmem1, we always get asuccessfully verified 0 nmem
response which doesn't tell the user why the operation failed. It also fails when presented with one disabled and one or more active/enabled nmems which is not what a user would expect.If we try to check the labels on nmem1, we get
While the message is not entirely helpful, the response is expected. The message could be improved to indicate that the nmem is disabled. This would be very helpful in debugging situations.
Given nmem1 is disabled I would expect the check-label to ignore it and skip to the next one(s), but it doesn't. If we give
check-labels
a list of enabled and disabled nmems, it always silently failsExpected Output
I would expect the following response (or something similar)