Whamcloud - gitweb
LU-13397 llite: support fallocate() on selected mirror
authorMikhail Pershin <mpershin@whamcloud.com>
Sun, 22 Aug 2021 19:41:33 +0000 (22:41 +0300)
committerJohn L. Hammond <jhammond@whamcloud.com>
Thu, 13 Jan 2022 15:28:20 +0000 (15:28 +0000)
commit88b411a809641c82292e525f6c27c21d3f630f6c
tree9ce9e41eb7018e0a0987cd4a920f1f8d807cd560
parent664e46ea717fe1bbe8eddfee8f08547937921fb4
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

Lustre-change: https://review.whamcloud.com/44721
Lustre-commit: 89736d502cc99f095237dde7520fc4ca86191882

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