Skip to content

nvmet: improve 'read-only' handling

Hannes Reinecke linux-nvme 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvmet: make 'readonly' setting configurabledrivers/nvme/target/configfs.c+27 -05 replies
2/2nvmet: implement persistent read-only namespace featuredrivers/nvme/target/admin-cmd.c drivers/nvme/target/configfs.c drivers/nvme/target/core.c +3 more+47 -82 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nvmet: improve 'read-only' handling

Hi all,

there was a request (Hi Lennart) to implement 'readonly' handling for nvme target. Turns out to be relatively easy as we already have a 'readonly' flag for the namespace.
So all what's left is to make this flag settable via a new configfs attribute. And while at it we can as well check if the underlying device/file is read-only, and implement a 'persistent_ro' flag to mark them as persistently read-only.

As usual, comments and reviews are welcome.

Hannes Reinecke (2):
nvmet: make 'readonly' setting configurable
nvmet: implement persistent read-only namespace feature

 drivers/nvme/target/admin-cmd.c   | 15 +++++++++++----
 drivers/nvme/target/configfs.c    | 32 +++++++++++++++++++++++++++++++
 drivers/nvme/target/core.c        |  2 ++
 drivers/nvme/target/io-cmd-bdev.c | 11 +++++++++++
 drivers/nvme/target/io-cmd-file.c | 21 ++++++++++++++++----
 drivers/nvme/target/nvmet.h       |  1 +
 6 files changed, 74 insertions(+), 8 deletions(-)
Signature · 1 line
2.35.3