Whamcloud - gitweb
LU-5654 osd-ldiskfs: Handle holes in osd_ldiskfs_read() 45/12145/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>
Thu, 9 Oct 2014 13:59:43 +0000 (13:59 +0000)
commit3dc232918c7c9b95398ac6a0dc4c2130adc2851d
tree0ac3c75b9fc576434ae432bff0bf683d57f595cc
parent9940a6fdcb080a6f4f59a09a287ac865a06ea6d2
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.

Test-Parameters: testlist=conf-sanity,conf-sanity,conf-sanity,conf-sanity,conf-sanity
Change-Id: I3044f771fccfdddf1fee0c931e8996cbdd8df0c8
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/12145
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Jenkins
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_io.c
lustre/tests/conf-sanity.sh