mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* nvme sanitize command
@ 2025-01-13 10:57 Renaud Barbier
  2025-01-13 11:18 ` Ahmad Fatoum
  0 siblings, 1 reply; 6+ messages in thread
From: Renaud Barbier @ 2025-01-13 10:57 UTC (permalink / raw)
  To: Barebox List

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






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-13 16:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-13 10:57 nvme sanitize command Renaud Barbier
2025-01-13 11:18 ` Ahmad Fatoum
2025-01-13 14:03   ` Renaud Barbier
2025-01-13 14:36     ` Ahmad Fatoum
2025-01-13 15:04       ` Renaud Barbier
2025-01-13 15:36         ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox