• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Some flags are not defined in <linux/nbd.h>, but are passed anyway.
3 * These flags are sent from nbd-server to the client, and the client
4 * passes them to the kernel unmodified after parsing. Both the client
5 * and the kernel ignore flags unknown to them.
6 */
7
8/* The server supports flags */
9NBD_FLAG_HAS_FLAGS	(1 << 0)
10/* The export is read-only */
11NBD_FLAG_READ_ONLY	(1 << 1)
12/* The server supports NBD_CMD_FLUSH */
13NBD_FLAG_SEND_FLUSH	(1 << 2)
14/* The server supports NBD_CMD_FLAG_FUA (Force Unit Access) */
15NBD_FLAG_SEND_FUA	(1 << 3)
16/* The export is a rotational medium */
17NBD_FLAG_ROTATIONAL	(1 << 4)
18/* The server supports NBD_CMD_TRIM */
19NBD_FLAG_SEND_TRIM	(1 << 5)
20/* The server supports NBD_CMD_WRITE_ZEROES and NBD_CMD_FLAG_NO_HOLE */
21NBD_FLAG_SEND_WRITE_ZEROES	(1 << 6)
22/* The server supports NBD_CMD_FLAG_DF (don't fragment replies) */
23NBD_FLAG_SEND_DF	(1 << 7)
24/* The server supports multiple connections */
25NBD_FLAG_CAN_MULTI_CONN	(1 << 8)
26/* The server supports NBD_CMD_RESIZE (resizing the device) */
27NBD_FLAG_SEND_RESIZE	(1 << 9)
28/* The server supports NBD_CMD_CACHE */
29NBD_FLAG_SEND_CACHE	(1 << 10)
30