Whamcloud - gitweb
LU-5654 osd-ldiskfs: Handle holes in osd_ldiskfs_read() 19/12319/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>
Tue, 11 Nov 2014 04:02:23 +0000 (04:02 +0000)
commite6745116cc372647f785c4063389734620c92e91
tree18b571f6f11773841c09b712d34e1ed320c004e2
parent853b3ea950e57ab014aaa255ad81407e991b0e93
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 mdsfilesystemtype=zfs mdtfilesystemtype=zfs ostfilesystemtype=zfs
Test-Parameters: testlist=conf-sanity,conf-sanity,conf-sanity mdsfilesystemtype=ldiskfs mdtfilesystemtype=ldiskfs ostfilesystemtype=ldiskfs
Change-Id: I51c5fcc5d9e258b536e5d2f070eb9ca6cd67d5aa
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/12319
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>
lustre/osd-ldiskfs/osd_io.c
lustre/tests/conf-sanity.sh