]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: fix ZNS Read Across Zone Boundaries print
authorNiklas Cassel <niklas.cassel@wdc.com>
Fri, 18 Sep 2020 15:39:29 +0000 (15:39 +0000)
committerKeith Busch <kbusch@kernel.org>
Fri, 18 Sep 2020 16:27:59 +0000 (10:27 -0600)
According to the ZNS specification, Read Across Zone Boundaries in
the ozcs field is at bit 0, not at bit 2.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
nvme-print.c

index 05b39d77918d238dc1a1da22670ed4d13d6293b5..10190a313be2f6040f3ea0f8c5f6092d1255eb42 100644 (file)
@@ -2977,7 +2977,7 @@ static void show_nvme_id_ns_zoned_ozcs(__le16 ns_ozcs)
 
        if (rsvd)
                printf(" [15:1] : %#x\tReserved\n", rsvd);
-       printf("  [2:2] : %#x\tRead Across Zone Boundaries: %s\n",
+       printf("  [0:0] : %#x\tRead Across Zone Boundaries: %s\n",
                razb, razb ? "Yes" : "No");
        printf("\n");
 }