dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
Blob Blame History Raw
From b2fc576828af873a1993bdaa2fcb7c860b94df3e Mon Sep 17 00:00:00 2001
From: chantra <chantr4@gmail.com>
Date: Tue, 8 Feb 2022 17:10:23 -0800
Subject: [PATCH 15/30] [reflink] use reflink_fsm_file_install hook instead of
 reflink_fsm_file_pre

---
 plugins/reflink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/reflink.c b/plugins/reflink.c
index ec575f55e..7dda06d8e 100644
--- a/plugins/reflink.c
+++ b/plugins/reflink.c
@@ -223,7 +223,7 @@ rpm_loff_t find(const unsigned char *digest, reflink_state state) {
     return offset;
 }
 
-static rpmRC reflink_fsm_file_pre(rpmPlugin plugin, rpmfi fi, const char* path,
+static rpmRC reflink_fsm_file_install(rpmPlugin plugin, rpmfi fi, const char* path,
                                   mode_t file_mode, rpmFsmOp op)
 {
     struct file_clone_range fcr;
@@ -355,5 +355,5 @@ struct rpmPluginHooks_s reflink_hooks = {
     .cleanup = reflink_cleanup,
     .psm_pre = reflink_psm_pre,
     .psm_post = reflink_psm_post,
-    .fsm_file_pre = reflink_fsm_file_pre,
+    .fsm_file_install = reflink_fsm_file_install,
 };
-- 
2.35.1