Skip to content

Commit

Permalink
ublk: enable zoned storage support
Browse files Browse the repository at this point in the history
Add zoned storage support to ublk: report_zones and operations:
 - REQ_OP_ZONE_OPEN
 - REQ_OP_ZONE_CLOSE
 - REQ_OP_ZONE_FINISH
 - REQ_OP_ZONE_RESET
 - REQ_OP_ZONE_APPEND

The zone append feature uses the `addr` field of `struct ublksrv_io_cmd` to
communicate ALBA back to the kernel. Therefore ublk must be used with the
user copy feature (UBLK_F_USER_COPY) for zoned storage support to be
available. Without this feature, ublk will not allow zoned storage support.

Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230804114610.179530-4-nmi@metaspace.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Andreas Hindborg authored and Jens Axboe committed Aug 8, 2023
1 parent 1a6e88b commit 29802d7
Show file tree
Hide file tree
Showing 2 changed files with 370 additions and 24 deletions.
Loading

0 comments on commit 29802d7

Please sign in to comment.