dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone

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

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