Skip to content

Commit 7af44c4

Browse files
riteshharjanitytso
authored andcommitted
Documentation: correct the description of FIEMAP_EXTENT_LAST
Currently FIEMAP_EXTENT_LAST is not working consistently across different filesystem's fiemap implementations. So add more information about how else this flag could set in other implementation. Signed-off-by: Ritesh Harjani <[email protected]> Link: https://lore.kernel.org/r/5a00e8d4283d6849e0b8f408c8365b31fbc1d153.1582880246.git.riteshh@linux.ibm.com Signed-off-by: Theodore Ts'o <[email protected]>
1 parent d3b6f23 commit 7af44c4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/filesystems/fiemap.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ data. Note that the opposite is not true - it would be valid for
115115
FIEMAP_EXTENT_NOT_ALIGNED to appear alone.
116116

117117
* FIEMAP_EXTENT_LAST
118-
This is the last extent in the file. A mapping attempt past this
119-
extent will return nothing.
118+
This is generally the last extent in the file. A mapping attempt past
119+
this extent may return nothing. Some implementations set this flag to
120+
indicate this extent is the last one in the range queried by the user
121+
(via fiemap->fm_length).
120122

121123
* FIEMAP_EXTENT_UNKNOWN
122124
The location of this extent is currently unknown. This may indicate

0 commit comments

Comments
 (0)