Whamcloud - gitweb
LU-14160 fallocate: Add punch mode to fallocate 77/40877/25
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 14 Dec 2020 15:30:30 +0000 (10:30 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 Apr 2021 03:15:05 +0000 (03:15 +0000)
commitcb037f305c64cd5121fa308afc1e6b7d3df3f61a
tree6eee8cf3a27cf14733fd1bcfbbb164bb473aa281
parent7462e8cad730897f459da31886c57585654f26b8
LU-14160 fallocate: Add punch mode to fallocate

This patch adds fallocate(2) punch operation
(FALLOCATE_FL_PUNCH_HOLE) mode support for ldiskfs backend
OSD and for OSC/OST

Test cases sanity/150{f,g} are added for verification.
FSX test was modified:
 - add 'punch' operation to an output
 - fix 'No space' problem when fallocate length become negative
 - fix wrong bytes number in output

Test-Parameters: testlist=sanity ostsizegb=12 env=ONLY="150f 150g"
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I0c180d413efdf995823e25d5c340013bec0c8611
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40877
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
13 files changed:
lustre/include/cl_object.h
lustre/llite/file.c
lustre/mdc/mdc_dev.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_objects.c
lustre/osc/osc_io.c
lustre/osc/osc_request.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/tests/fsx.c
lustre/tests/sanity-dom.sh
lustre/tests/sanity.sh