Whamcloud - gitweb
LU-14286 osd-ldiskfs: don't read unwritten blocks 16/41216/4
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 13 Jan 2021 15:48:54 +0000 (18:48 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 22 Jan 2021 20:14:10 +0000 (20:14 +0000)
commit42c52069cada6837df34a02638717dff709e5a0e
tree0a7f682bc5029f4ae49440ddb80219d06b4c7aff
parent18d61a910bcc76312815f52b2d8f68717ab9b414
LU-14286 osd-ldiskfs: don't read unwritten blocks

which were allocated using fallocate(2), instead fill
the pages with zeroes.

Add a test to verify that fallocated blocks read as zeroes.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I9c0c90f93fd33f26f834144e225b2643cf9fffb7
Reviewed-on: https://review.whamcloud.com/41216
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c
lustre/tests/sanity.sh