nbd: add support for rotational devices
authorWouter Verhelst <w@uter.be>
Thu, 25 Jul 2024 16:45:36 +0000 (18:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Sun, 28 Jul 2024 22:47:52 +0000 (16:47 -0600)
commit7543ae2269a855683a39af57048035f44bc8ef9c
tree4877344faa167ba1af8d96734876a7660be9e7c6
parent7960af373ade3b39e10106ef415e43a1d2aa48c6
nbd: add support for rotational devices

The NBD protocol defines the flag NBD_FLAG_ROTATIONAL to flag that the
export in use should be treated as a rotational device.

Add support for that flag to the kernel driver.

Signed-off-by: Wouter Verhelst <w@uter.be>
Reviewed-by: Eric Blake <eblake@redhat.com>
Link: https://lore.kernel.org/r/20240725164536.1275851-1-w@uter.be
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c
include/uapi/linux/nbd.h