This PR adds a new  `FA_REFLINK` file action. This action reflinks a file 
instead of doing a copy. 

This can be used as follows:
- plugins call `rpmfilesSetFcr` with a 
[`file_clone_range`](https://man7.org/linux/man-pages/man2/ioctl_ficlonerange.2.html)
 structure containing reflink information
- they call `rpmfsSetAction` to set the `FA_REFLINK` action. 
- RPM will try to reflink the file and fall back to copying if reflinking fails


You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2557

-- Commit Summary --

  * Add FA_REFLINK file action

-- File Changes --

    M include/rpm/rpmfi.h (8)
    M include/rpm/rpmfiles.h (3)
    M lib/fsm.c (9)
    M lib/fsm.h (2)
    M lib/rpmfi.c (86)
    M lib/rpmfs.h (1)
    M lib/transaction.c (4)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2557.patch
https://github.com/rpm-software-management/rpm/pull/2557.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2557
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to