8 Star 0 Fork 5

src-anolis-os/glusterfs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0530-gfapi-avoid-crash-while-logging-message.patch 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
renbo02 提交于 2021-12-27 14:44 . update to glusterfs-6.0-56.4.el8
From 5a7348a266587704dae4f1ddda16b7c95f547251 Mon Sep 17 00:00:00 2001
From: Rinku Kothiya <[email protected]>
Date: Sun, 7 Feb 2021 13:40:24 +0000
Subject: [PATCH 530/532] gfapi: avoid crash while logging message.
Breaking parameter into two different parameter
to avoid a crash.
Upstream:
> Reviewed-on: https://github.com/gluster/glusterfs/pull/2139
> fixes: #2138
> Change-Id: Idd5f3631488c1d892748f83e6847fb6fd2d0802a
> Signed-off-by: Rinku Kothiya <[email protected]>
BUG: 1691320
Change-Id: Ifd6a96982ffd4e5334f8be2297de2ad826f3145b
Signed-off-by: Rinku Kothiya <[email protected]>
Reviewed-on: https://code.engineering.redhat.com/gerrit/226851
Tested-by: RHGS Build Bot <[email protected]>
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <[email protected]>
---
api/src/glfs-fops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index 051541f..6dc3b66 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -1529,7 +1529,7 @@ glfs_pwritev_common(struct glfs_fd *glfd, const struct iovec *iovec, int iovcnt,
ret = -1;
errno = EINVAL;
gf_smsg(THIS->name, GF_LOG_ERROR, errno, API_MSG_INVALID_ARG,
- "size >= %llu is not allowed", GF_UNIT_GB, NULL);
+ "Data size too large", "size=%llu", GF_UNIT_GB, NULL);
goto out;
}
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/glusterfs.git
[email protected]:src-anolis-os/glusterfs.git
src-anolis-os
glusterfs
glusterfs
a8

搜索帮助