Whamcloud - gitweb
LU-5654 osd-ldiskfs: Handle holes in osd_ldiskfs_read() 35/12035/3
authorLi Wei <wei.g.li@intel.com>
Wed, 24 Sep 2014 04:12:37 +0000 (12:12 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 26 Sep 2014 23:08:40 +0000 (23:08 +0000)
commitb5485d307568af92e1a940fa4a7859e6db5b7a97
tree306d0cfe90dba3f9961c98bc1ff1a9b58fd8108a
parent1ef538647d0a1ff58ef735e6d940b1e95a5eaa3b
LU-5654 osd-ldiskfs: Handle holes in osd_ldiskfs_read()

Current osd_ldiskfs_read() incorrectly returns zero and leaves the
corresponding portion of the buffer untouched when a block to be read
is not allocated.

Change-Id: Idfd441656b99aa039a6bb4f7141b5407553855da
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/12035
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_io.c
lustre/tests/conf-sanity.sh