ndctl icon indicating copy to clipboard operation
ndctl copied to clipboard

ndctl enable-region failed still return 0 when "echo $?"

Open chunglam1999 opened this issue 7 years ago • 2 comments

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

chunglam1999 avatar May 29 '18 05:05 chunglam1999

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?

jchu314atgithub avatar Jun 05 '18 21:06 jchu314atgithub

Probably fixed in 9840942d5f6dc0d0e3693956f6733bbbc4e06e3a (v65)

hramrach avatar Mar 09 '22 20:03 hramrach