ndctl
ndctl copied to clipboard
ndctl enable-region failed still return 0 when "echo $?"
Version: ndctl-59.2 When there is a bad DIMM or unusable region on an AEP system, attempting to enable the region via ndctl results in messages such as the one below:
ndctl list -ir 7 { "dev":"region7", "size":527207235584, "available_size":0, "type":"pmem", "iset_id":1298162592740671488, "state":"disabled" } ndctl enable-region region7 libndctl: ndctl_region_enable: region7: failed to enable enabled 1 region echo $? 0
seen above as well. The issue: 1) "echo $?" returns 0 could confuse automated test scripts, 2) conflict error message: "failed to enable" versus "enabled 1 region", which is what's meant?
Probably fixed in 9840942d5f6dc0d0e3693956f6733bbbc4e06e3a (v65)