HomeFreeBSD

Avoid abort() in vn_rdwr(): libzpool/kernel.c

Description

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

Details

Provenance
Mike Leddy <mike.leddy@gmail.com>Authored on Jul 4 2013, 4:02 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 9 2013, 6:56 PM
Parents
rGb4f7f105275d: Improve code in arc_buf_remove_ref
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG5d3dc3fb7251: Avoid abort() in vn_rdwr(): libzpool/kernel.c (authored by Mike Leddy <mike.leddy@gmail.com>).Jul 9 2013, 6:56 PM