From ae025c1a1bfcc9cf98f740a56bf73499a93898ea Mon Sep 17 00:00:00 2001 From: Weifeng Su Date: Thu, 1 Dec 2022 07:57:28 +0800 Subject: [PATCH] add path put in xattr set Signed-off-by: Weifeng Su (cherry picked from commit 61da617bc3dc0e51da7b3f9bab8b4dbfbb7306a1) --- 0001-add-path-put-in-xattr-set.patch | 25 +++++++++++++++++++++++++ dpu-utilities.spec | 7 ++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-add-path-put-in-xattr-set.patch diff --git a/0001-add-path-put-in-xattr-set.patch b/0001-add-path-put-in-xattr-set.patch new file mode 100644 index 0000000..89e9abd --- /dev/null +++ b/0001-add-path-put-in-xattr-set.patch @@ -0,0 +1,25 @@ +From 959f29ce47ff71cc40ffbd0857471b79074cb9a5 Mon Sep 17 00:00:00 2001 +From: liqiang +Date: Wed, 30 Nov 2022 20:30:29 +0800 +Subject: [PATCH] add path put in xattr set + +Signed-off-by: liqiang +--- + qtfs/qtfs_server/fsops.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/qtfs/qtfs_server/fsops.c b/qtfs/qtfs_server/fsops.c +index 6633f3c..48ec7ab 100644 +--- a/qtfs/qtfs_server/fsops.c ++++ b/qtfs/qtfs_server/fsops.c +@@ -843,6 +843,7 @@ int handle_xattrset(struct qtserver_arg *arg) + qtfs_info("handle xattrset path:%s name:%s value:%s ret:%d size:%lu flags:%d", req->buf, + &req->buf[req->d.pathlen], &req->buf[req->d.pathlen + req->d.namelen], rsp->errno, + req->d.size, req->d.flags); ++ path_put(&path); + return sizeof(struct qtrsp_xattrset); + + err_handle: +-- +2.23.0 + diff --git a/dpu-utilities.spec b/dpu-utilities.spec index 0e55388..0dfa80e 100644 --- a/dpu-utilities.spec +++ b/dpu-utilities.spec @@ -1,7 +1,7 @@ Name: dpu-utilities Summary: openEuler dpu utilities Version: 1.1 -Release: 1 +Release: 2 License: GPL-2.0 Source: https://gitee.com/openeuler/dpu-utilities/repository/archive/v%{version}.tar.gz ExclusiveOS: linux @@ -13,6 +13,8 @@ Provides: %{name} = %{version}-%{release} BuildRequires: kernel-devel >= 5.10, gcc, make BuildRequires: golang +Patch1: 0001-add-path-put-in-xattr-set.patch + %description This package contains the software utilities on dpu. @@ -105,6 +107,9 @@ sed -i '/# product cut_conf/a\dpuos kiwi/minios/cfg_dpuos yes' /opt/imageT sed -i '//a\dpuos 1 rpm-dir euler_base' /opt/imageTailor/repos/RepositoryRule.conf %changelog +* Thu Dec 1 2022 Weifeng Su 1.1-2 +- add path put in xattr set + * Mon Nov 28 2022 Weifeng Su 1.1-1 - Upgrade dpu-utilities version to 1.1 -- Gitee