aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Verhelst <[email protected]>2024-08-12 15:20:40 +0200
committerJens Axboe <[email protected]>2024-09-06 08:31:40 -0600
commit41372f5c9a866365e212809b3543ae8cb5b2542b (patch)
tree377bac48bcfca1975ddcaae2f07d5070493862b1
parente49dacc71ec2621ce4c422cd5605d4d06f7807b0 (diff)
nbd: nbd_bg_flags_show: add NBD_FLAG_ROTATIONAL
Also handle NBD_FLAG_ROTATIONAL in our debug helper function Signed-off-by: Wouter Verhelst <[email protected]> Cc: Eric Blake <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--drivers/block/nbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index eee632b84994..18b94d7c795a 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -1725,6 +1725,8 @@ static int nbd_dbg_flags_show(struct seq_file *s, void *unused)
seq_puts(s, "NBD_FLAG_SEND_TRIM\n");
if (flags & NBD_FLAG_SEND_WRITE_ZEROES)
seq_puts(s, "NBD_FLAG_SEND_WRITE_ZEROES\n");
+ if (flags & NBD_FLAG_ROTATIONAL)
+ seq_puts(s, "NBD_FLAG_ROTATIONAL\n");
return 0;
}