HomeFreeBSD

vfs: copy_file_range() between multiple mountpoints of the same fs type

Description

vfs: copy_file_range() between multiple mountpoints of the same fs type

VOP_COPY_FILE_RANGE(9) is now caled when source and target vnodes
reside on the same filesystem type (not just on the same mountpoint).
The check if vnodes are on the same mountpoint must be done in the
filesystem code. There are currently only three users - fusefs(5) already
has this check, ZFS can handle multiple mountpoints and a check has been
added to NFS client.

ZFS block cloning is now possible between all snapshots and datasets
of the same ZFS pool.

MFC after: 1 week
Reviewed by: rmacklem
Differential Revision: https://reviews.freebsd.org/D41721

Details

Provenance
mmAuthored on Sep 6 2023, 11:58 AM
Reviewer
rmacklem
Differential Revision
D41721: Cross-mountpoint copy_file_range() for ZFS
Parents
rGbf986d52458a: pci_vendors: update to 2023-08-12
Branches
Unknown
Tags
Unknown