nvmet: improve 'read-only' handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nvmet: make 'readonly' setting configurabledrivers/ | +27 | 5 replies | |
| 2/2 | nvmet: implement persistent read-only namespace featuredrivers/ drivers/ drivers/ +3 more | +47 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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