[lkml]   [2018]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] nvmet: fix nvmet_execute_write_zeroes function

> Doesn't that mean your host is using this command wrong? The NLB is a
> 0's based value, we're supposed to +1 to get the correct block count.

Keith, I tested passing different values to the c (number of blocks) and
s (64-bit LBA of first block to access) parameters, and it was failing.
When I removed the +1, the command worked fine.

I used a simple script to validate this:

for s in {0..20}
            for c in {0..20}
                    nvme write-zeroes /dev/nvme0 -n 10 -s $s -c $c

Is there some other way to test it?

Rodrigo R. Galvão
Intern - Linux Technology Center - IBM

 \ /
  Last update: 2018-03-30 23:48    [W:0.042 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site