metal-toolbox / ironlib

Vendor neutral hardware in-band library
Apache License 2.0
4 stars 3 forks source link

Add ns delete/create support to nvme WipeDisk #154

Closed mmlb closed 4 months ago

mmlb commented 4 months ago

Add support resetting the nvme namespaces. Deletes any existing namespaces and creates a single namespace with the largest blocksize supported by the device.

mmlb commented 4 months ago

depends on #142

mmlb commented 4 months ago

lgtm

Turns out it did not lgtm :D, I don't like having 2 args of the same type next to each other so added some tests to hopefully catch when they are swapped or otherwise wrong. PTAL again!