iscsi: Switch cluster_sectors to byte-based
commitba059e7b1785fbb7b3a60d4706f519b1cffab1e3
authorEric Blake <eblake@redhat.com>
Tue, 13 Feb 2018 20:26:46 +0000 (13 14:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (2 18:39 +0100)
tree03034401edf6947d1da5211a809fe635352a6f21
parent08c9e7735e4340a13596c5b97727655dee1fbb99
iscsi: Switch cluster_sectors to byte-based

We are gradually converting to byte-based interfaces, as they are
easier to reason about than sector-based.  Convert all uses of
the cluster size in sectors, along with adding assertions that we
are not dividing by zero.

Improve some comment grammar while in the area.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c