Whamcloud - gitweb
LU-17013 lov: fill FIEMAP_EXTENT_LAST flag 63/51863/9
authorLei Feng <flei@whamcloud.com>
Thu, 3 Aug 2023 09:44:15 +0000 (17:44 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Aug 2023 06:37:39 +0000 (06:37 +0000)
commitb1739ba3fadcc7cf0f330f6984bd51d3d801247d
tree0ae139775b1df273eddb620e69b6e007f2d0be68
parentf75ac594a2d11b3abda4f0639b047d0dbc6a2871
LU-17013 lov: fill FIEMAP_EXTENT_LAST flag

If file has N extents and get the fiemap with exactly N
extent slots, the last extent will miss FIEMAP_EXTENT_LAST
flag. Fix it.

Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: testlist=sanityn env=ONLY=71a+71b+71c
Change-Id: I4556b31f0d04bdf8e83f323e83b871b093beaa5e
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51863
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
lustre/lov/lov_object.c
lustre/tests/sanityn.sh