Open richardstephens opened 1 year ago
Well that's interesting... I guess I never expected the firmware to return a negative number for the usage haha. Yeah the thing to do here would be have that be a Result so that it's failable and then return the failure to the caller about a negative usage number.
When testing on Alpine 3.17, we noticed that we weren't seeing any NVMe disks. We quickly discovered the cause was that it was generating slightly different JSON output to my Debian dev machine.
I've submitted a PR to make the missing fields optional and add the Firmware field, but those negative numbers aren't going to parse into a u64.
It seems this was a bug in
nvme-cli
at some point - building the latest master from source fixes it. Shipping this works fine for us, but is this something we should try to handle in this project?