[checkers] handle >512 sector size in readsector0
authorJohn Kingman <kingman@storagegear.com>
Wed, 4 Jul 2007 21:38:53 +0000 (23:38 +0200)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 4 Jul 2007 21:38:53 +0000 (23:38 +0200)
commit648833108fc5a95cbe15bd779289e98165c34d25
treec818b09ce12246dbca17cfc570e65be4be3a2628
parent39b090ee2bb73b3940f64f6e72a8fb89a97e852d
[checkers] handle >512 sector size in readsector0

I encountered a problem with the sg_read() routine in readsector0.c
while testing an InfiniBand target having 4096 byte sectors.  The
sg_read() routine assumes that sectors are 512 bytes long.

A patch for the problem follows.

Signed-off-by: Christophe Varoqui <christophe.varoqui@free.fr>
libcheckers/libsg.c
libcheckers/readsector0.c