Whamcloud - gitweb
LU-17013 lov: fill FIEMAP_EXTENT_LAST flag
authorLei Feng <flei@whamcloud.com>
Thu, 3 Aug 2023 09:44:15 +0000 (17:44 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Aug 2023 16:18:04 +0000 (16:18 +0000)
commit2838e47407078ef6ab7653daa54fc39d37921f2b
treec92600ef1697b5def32db96f35e394daa084e745
parentc29eb05fcf9b9c3fced07d8c08a0a565b83338e5
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.

Lustre-change: https://review.whamcloud.com/51863
Lustre-commit: TBD (from 264ab0c258adbce93d582e5e97f05ff7bf87c18a)

Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanityn env=ONLY="71a 71b 71c"
Change-Id: I4556b31f0d04bdf8e83f323e83b871b093beaa5e
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52114
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lov/lov_object.c
lustre/tests/sanityn.sh