mirror_zfs/include/os/linux
Rob Norris 9927f219f1 linux: implement filesystem-side clone ioctls
Prior to Linux 4.5, the FICLONE etc ioctls were specific to BTRFS, and
were implemented as regular filesystem-specific ioctls. This implements
those ioctls directly in OpenZFS, allowing cloning to work on older
kernels.

There's no need to gate these behind version checks; on later kernels
Linux will simply never deliver these ioctls, instead calling the
approprate VFS op.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kay Pedersen <mail@mkwg.de>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-By: OpenDrives Inc.
Sponsored-By: Klara Inc.
Closes #15050
2023-07-24 16:36:54 -07:00
..
kernel/linux Linux 6.5 compat: disk_check_media_change() was added 2023-07-20 09:09:25 -07:00
spl intptr_t definition is canonically signed 2023-07-14 16:32:49 -07:00
zfs/sys linux: implement filesystem-side clone ioctls 2023-07-24 16:36:54 -07:00
Makefile.am Add SHA2 SIMD feature tests for Linux 2023-03-02 13:52:04 -08:00