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 0000000000000000000000000000000000000000..89e9abd6ea5eb3b8cfda4bf126827bdc1c5bb9be --- /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 0e553887c84590d0e300796d7449c9bd82b3a7cb..0dfa80e1e4047acf8e64f30fe29c037f54200816 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