|
|
b51a1f |
From 5a7348a266587704dae4f1ddda16b7c95f547251 Mon Sep 17 00:00:00 2001
|
|
|
b51a1f |
From: Rinku Kothiya <rkothiya@redhat.com>
|
|
|
b51a1f |
Date: Sun, 7 Feb 2021 13:40:24 +0000
|
|
|
b51a1f |
Subject: [PATCH 530/532] gfapi: avoid crash while logging message.
|
|
|
b51a1f |
|
|
|
b51a1f |
Breaking parameter into two different parameter
|
|
|
b51a1f |
to avoid a crash.
|
|
|
b51a1f |
|
|
|
b51a1f |
Upstream:
|
|
|
b51a1f |
> Reviewed-on: https://github.com/gluster/glusterfs/pull/2139
|
|
|
b51a1f |
> fixes: #2138
|
|
|
b51a1f |
> Change-Id: Idd5f3631488c1d892748f83e6847fb6fd2d0802a
|
|
|
b51a1f |
> Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
|
|
|
b51a1f |
|
|
|
b51a1f |
BUG: 1691320
|
|
|
b51a1f |
|
|
|
b51a1f |
Change-Id: Ifd6a96982ffd4e5334f8be2297de2ad826f3145b
|
|
|
b51a1f |
Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
|
|
|
b51a1f |
Reviewed-on: https://code.engineering.redhat.com/gerrit/226851
|
|
|
b51a1f |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
b51a1f |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
b51a1f |
---
|
|
|
b51a1f |
api/src/glfs-fops.c | 2 +-
|
|
|
b51a1f |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b51a1f |
|
|
|
b51a1f |
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
|
|
|
b51a1f |
index 051541f..6dc3b66 100644
|
|
|
b51a1f |
--- a/api/src/glfs-fops.c
|
|
|
b51a1f |
+++ b/api/src/glfs-fops.c
|
|
|
b51a1f |
@@ -1529,7 +1529,7 @@ glfs_pwritev_common(struct glfs_fd *glfd, const struct iovec *iovec, int iovcnt,
|
|
|
b51a1f |
ret = -1;
|
|
|
b51a1f |
errno = EINVAL;
|
|
|
b51a1f |
gf_smsg(THIS->name, GF_LOG_ERROR, errno, API_MSG_INVALID_ARG,
|
|
|
b51a1f |
- "size >= %llu is not allowed", GF_UNIT_GB, NULL);
|
|
|
b51a1f |
+ "Data size too large", "size=%llu", GF_UNIT_GB, NULL);
|
|
|
b51a1f |
goto out;
|
|
|
b51a1f |
}
|
|
|
b51a1f |
|
|
|
b51a1f |
--
|
|
|
b51a1f |
1.8.3.1
|
|
|
b51a1f |
|