History

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.

Wouter Verhelst committed 2 years ago

Commit 7543ae21 parent 7960af32 files · +5 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/nbd.h+2−1
@@ -51,8 +51,9 @@ enum { · 50 unmodified lines
5151 #define NBD_FLAG_READ_ONLY (1 << 1) /* device is read-only */
5252 #define NBD_FLAG_SEND_FLUSH (1 << 2) /* can flush writeback cache */
5353 #define NBD_FLAG_SEND_FUA (1 << 3) /* send FUA (forced unit access) */
54−/* there is a gap here to match userspace */
54+#define NBD_FLAG_ROTATIONAL (1 << 4) /* device is rotational */
5555 #define NBD_FLAG_SEND_TRIM (1 << 5) /* send trim/discard */
56+/* there is a gap here to match userspace */
5657 #define NBD_FLAG_CAN_MULTI_CONN (1 << 8) /* Server supports multiple connections per export. */
5758
5859 /* values for cmd flags in the upper 16 bits of request type */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t