This patch fixes the following problems: - Corrects the return error status on reads and writes in LSM to make it POSIX compliant. - Fixes a problem in lsm. A data corruption occurs when readv/writev coallesced via physio while in read/writeback mode.