Skip to content

Commit 41372f5

Browse files
yoeaxboe
authored andcommitted
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]>
1 parent e49dacc commit 41372f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/block/nbd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,8 @@ static int nbd_dbg_flags_show(struct seq_file *s, void *unused)
17251725
seq_puts(s, "NBD_FLAG_SEND_TRIM\n");
17261726
if (flags & NBD_FLAG_SEND_WRITE_ZEROES)
17271727
seq_puts(s, "NBD_FLAG_SEND_WRITE_ZEROES\n");
1728+
if (flags & NBD_FLAG_ROTATIONAL)
1729+
seq_puts(s, "NBD_FLAG_ROTATIONAL\n");
17281730

17291731
return 0;
17301732
}

0 commit comments

Comments
 (0)