Skip to content

Commit 4ca6444

Browse files
committed
btrfs-progs: docs: inline files vs tail packing
Explain the difference, in case somebody want's to use it as a source to correct that on Wikipedia. [ ci skip ] Signed-off-by: David Sterba <[email protected]>
1 parent bc23173 commit 4ca6444

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Documentation/Inline-files.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ An inline file can be identified by enumerating the extents, e.g. by the tool
2525
In the above example, the file is not compressed, otherwise it would have the
2626
*encoded* flag. The inline files have no limitations and behave like regular
2727
files with respect to copying, renaming, reflink, truncate etc.
28+
29+
.. note::
30+
This is not `tail packing <https://en.wikipedia.org/wiki/Block_suballocation#Tail_packing>`__,
31+
known e.g. from `ReiserFS <https://en.wikipedia.org/wiki/ReiserFS>`__ . The
32+
whole inline file must fit and is stored in the metadata block. Larger files
33+
have their extents stored in blocks and the last one can be underutilized.
34+
With tail packing such blocks would be stored elsewhere out of order,
35+
possibly mixed with other last blocks from other files.
36+
37+
This was an early design decision not to implement it due to experience with
38+
the complexity in ReiserFS and does not seem justified with the possible
39+
space savings in the data blocks but increased metadata to track the packed blocks.

0 commit comments

Comments
 (0)