From: Renaud Barbier <Renaud.Barbier@ametek.com>
To: Barebox List <barebox@lists.infradead.org>
Subject: Subject: [PATCH 0/1] Initial NVME storage erase operation
Date: Thu, 16 Jan 2025 10:52:01 +0000 [thread overview]
Message-ID: <DM5PR07MB3532F89A244DCCEEB887707DEC1A2@DM5PR07MB3532.namprd07.prod.outlook.com> (raw)
This patch introduces the erase entry point for the NVME storage.
It uses the nvme sanitize command 2 for a low level block erase
of the entire device as start and end blocks cannot be specified.
Note that in the current state, the user should first remove existing
partitions with the command 'parted rmpart' as they will stay dangling
in barebox device nodes and mount points.
Renaud Barbier (1):
nvme: add erase operation through sanitize command
drivers/nvme/host/core.c | 82 ++++++++++++++++++++++++++++++++++++++++
drivers/nvme/host/pci.c | 2 +
include/nvme/types.h | 38 +++++++++++++++++++
3 files changed, 122 insertions(+)
create mode 100644 include/nvme/types.h
--
2.34.1
next reply other threads:[~2025-01-16 10:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-16 10:52 Renaud Barbier [this message]
2025-01-16 11:15 ` Ahmad Fatoum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM5PR07MB3532F89A244DCCEEB887707DEC1A2@DM5PR07MB3532.namprd07.prod.outlook.com \
--to=renaud.barbier@ametek.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox