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