dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone

Blame SOURCES/0015-reflink-use-reflink_fsm_file_install-hook-instead-of.patch

629b27
From b2fc576828af873a1993bdaa2fcb7c860b94df3e Mon Sep 17 00:00:00 2001
629b27
From: chantra <chantr4@gmail.com>
629b27
Date: Tue, 8 Feb 2022 17:10:23 -0800
629b27
Subject: [PATCH 15/30] [reflink] use reflink_fsm_file_install hook instead of
629b27
 reflink_fsm_file_pre
629b27
629b27
---
629b27
 plugins/reflink.c | 4 ++--
629b27
 1 file changed, 2 insertions(+), 2 deletions(-)
629b27
629b27
diff --git a/plugins/reflink.c b/plugins/reflink.c
629b27
index ec575f55e..7dda06d8e 100644
629b27
--- a/plugins/reflink.c
629b27
+++ b/plugins/reflink.c
629b27
@@ -223,7 +223,7 @@ rpm_loff_t find(const unsigned char *digest, reflink_state state) {
629b27
     return offset;
629b27
 }
629b27
 
629b27
-static rpmRC reflink_fsm_file_pre(rpmPlugin plugin, rpmfi fi, const char* path,
629b27
+static rpmRC reflink_fsm_file_install(rpmPlugin plugin, rpmfi fi, const char* path,
629b27
                                   mode_t file_mode, rpmFsmOp op)
629b27
 {
629b27
     struct file_clone_range fcr;
629b27
@@ -355,5 +355,5 @@ struct rpmPluginHooks_s reflink_hooks = {
629b27
     .cleanup = reflink_cleanup,
629b27
     .psm_pre = reflink_psm_pre,
629b27
     .psm_post = reflink_psm_post,
629b27
-    .fsm_file_pre = reflink_fsm_file_pre,
629b27
+    .fsm_file_install = reflink_fsm_file_install,
629b27
 };
629b27
-- 
629b27
2.35.1
629b27