<html><body><div style="font-family: garamond,new york,times,serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Vijay Bellur" <vbellur@redhat.com><br><b>To: </b>"Lalatendu Mohanty" <lmohanty@redhat.com>, gluster-devel@nongnu.org<br><b>Sent: </b>Tuesday, December 17, 2013 1:02:39 PM<br><b>Subject: </b>Re: [Gluster-devel] Fwd: New Defects reported by Coverity Scan for GlusterFS<br><div><br></div>On 12/17/2013 11:17 AM, Lalatendu Mohanty wrote:<br>><br>><br>> -------- Original Message --------<br>> Subject: New Defects reported by Coverity Scan for GlusterFS<br>> Date: Mon, 16 Dec 2013 12:49:25 -0800<br>> From: scan-admin@coverity.com<br>><br>><br>><br>> Hi,<br>><br>><br>> Please find the latest report on new defect(s) introduced to GlusterFS found with Coverity Scan.<br>><br>> Defect(s) Reported-by: Coverity Scan<br>> Showing 7 of 8 defect(s)<br>><br>><br>> ** CID 1138525: Missing break in switch (MISSING_BREAK)<br>> /xlators/mgmt/glusterd/src/glusterd-quota.c: 1407 in glusterd_op_stage_quota()<br><div><br></div>Raghavendra: Can you please confirm if this is an intentional "missing <br>break"?</blockquote><div>Vijay,</div><div>The absence of a break statement in glusterd_op_stage_quota() is intentional.</div><div><br></div><div><span style="font-size: 12pt;">During stage-op, the act of fetching the gfid of the directory on which limit is to be set from local bricks, is common to both</span></div><div><span style="font-size: 12pt;">'limit-usage' and 'remove' sub-commands of quota, which explains the missing 'break' statement.</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">-Krutika</span></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br>><br>> ** CID 1138522: Destination buffer too small (BUFFER_SIZE)<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2926 in glusterd_read_status_file()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2928 in glusterd_read_status_file()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2904 in glusterd_read_status_file()<br>><br>> ** CID 1138523: Logically dead code (DEADCODE)<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2634 in glusterd_parse_gsync_status()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2654 in glusterd_parse_gsync_status()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2668 in glusterd_parse_gsync_status()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2624 in glusterd_parse_gsync_status()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2630 in glusterd_parse_gsync_status()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2650 in glusterd_parse_gsync_status()<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2664 in glusterd_parse_gsync_status()<br>><br>> ** CID 1138524: Explicit null dereferenced (FORWARD_NULL)<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2679 in glusterd_parse_gsync_status()<br>><br>> ** CID 1138527: Resource leak (RESOURCE_LEAK)<br>> /xlators/mgmt/glusterd/src/glusterd-utils.c: 4750 in _local_gsyncd_start()<br>><br>> ** CID 1138526: Resource leak (RESOURCE_LEAK)<br>> /xlators/mgmt/glusterd/src/glusterd-geo-rep.c: 2683 in glusterd_parse_gsync_status()<br><div><br></div>Ajeet, Avra: Can you please look into these defects?<br><div><br></div>Thanks,<br>Vijay<br><div><br></div><br><div><br></div>_______________________________________________<br>Gluster-devel mailing list<br>Gluster-devel@nongnu.org<br>https://lists.nongnu.org/mailman/listinfo/gluster-devel<br></blockquote><div><br></div></div></body></html>