Skip to content

Commit

Permalink
Merge pull request #515 from endolith/patch-2
Browse files Browse the repository at this point in the history
DOC: Clarify clone vs reflink
  • Loading branch information
SeeSpotRun committed Jun 5, 2021
2 parents aedab04 + 0b4e6db commit 29bd07e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,11 @@ Here's the list of currently available formatters and their config options:

- *clone*: reflink-capable filesystems only. Try to clone both files with the
FIDEDUPERANGE ``ioctl(3p)`` (or BTRFS_IOC_FILE_EXTENT_SAME on older kernels).
This will free up duplicate extents. Needs at least kernel 4.2.
- *reflink*: Try to reflink the duplicate file to the original. See also
``--reflink`` in ``man 1 cp``. Fails if the filesystem does not support
it.
This will free up duplicate extents while preserving the metadata of both.
Needs at least kernel 4.2.
- *reflink*: Try to replace the duplicate file with a reflink to the original.
See also ``--reflink`` in ``man 1 cp``. Fails if the filesystem does not
support it.
- *hardlink*: Replace the duplicate file with a hardlink to the original
file. Fails if both files are not on the same partition.
- *symlink*: Tries to replace the duplicate file with a symbolic link to
Expand Down

0 comments on commit 29bd07e

Please sign in to comment.