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