nvme sanitize command

Renaud Barbier Renaud.Barbier at ametek.com
Mon Jan 13 02:57:29 PST 2025


I would like to add a nvme sanitize command to the barebox. Something like "nvme sanitize" where at first the only option is block erase.
I have a level of understanding on how admin commands are passed to the device through the /drivers/nvme/host/[core.c|pci.c.]
Looking at the parted command, I am not sure how it goes from the command call to the partition layer support (EFI or DOS) to the driver.

I see that Linux make use of an ioctl to trigger the sanitize command. 
How would you approach the introduction of this new command?
Any help is appreciated.

Renaud






More information about the barebox mailing list