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