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 <w@uter.be> Cc: Eric Blake <eblake@redhat.Com> Link: https://lore.kernel.org/r/20240812133032.115134-6-w@uter.be Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent e49dacc commit 41372f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)