Avoid abort() in vn_rdwr(): libzpool/kernel.c
authorMike Leddy <mike.leddy@gmail.com>
Thu, 4 Jul 2013 04:02:05 +0000 (01:02 -0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Jul 2013 18:56:43 +0000 (11:56 -0700)
commit5d3dc3fb72518a4c191e3a014622b74365eb3a74
tree3aec6da604856ffb12cd635d2f3528e6431a483a
parentb4f7f105275d996fbcb6abd65760307d2153a89b
Avoid abort() in vn_rdwr(): libzpool/kernel.c

Make sure that buffer is aligned to 512 bytes on linux so that
pread call combined with O_DIRECT does not return EINVAL.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1570
cmd/zdb/zdb.c