Whamcloud - gitweb
LU-13397 llite: support fallocate() on selected mirror 21/44721/3
authorMikhail Pershin <mpershin@whamcloud.com>
Sun, 22 Aug 2021 19:41:33 +0000 (22:41 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Sep 2021 04:41:36 +0000 (04:41 +0000)
commit89736d502cc99f095237dde7520fc4ca86191882
treeb2e83abd53705a4b5273a14718ca40d88f3b5dd6
parent5e4411e99cd7d0ccf4e51fac1442673844626639
LU-13397 llite: support fallocate() on selected mirror

- add ability to do fallocate() on designated mirror in
  FLR file
- add missing FALLOC_FL_KEEP_SIZE flag to fallocate() call
  in llapi_hole_punch(). It was just not working without
  that flag silently
- add corresponding test_50d in sanity-flr.sh

Fixes: 4126fbb30c ("LU-13397 lfs: mirror resync to keep sparseness")
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I8d700fce904c84458a50650f1d3cb09d23989eba
Reviewed-on: https://review.whamcloud.com/44721
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/lov/lov_io.c
lustre/tests/sanity-flr.sh
lustre/utils/liblustreapi_lseek.c