Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1336506

Summary: JBR: compiler warning fmt string
Product: [Community] GlusterFS Reporter: Kaleb KEITHLEY <kkeithle>
Component: jbrAssignee: Sheetal Pamecha <spamecha>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, kkeithle, spamecha, vbellur
Target Milestone: ---Keywords: EasyFix, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-17 09:54:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kaleb KEITHLEY 2016-05-16 16:45:07 UTC
Description of problem:

Making all in jbr-server
Making all in src
  CC       jbr-cg.lo
jbr-cg.c: In function 'jbr_get_fd_ctx':
jbr-cg.c:128:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
                         if (__fd_ctx_set(fd, this, (uint64_t)ctx_ptr) == 0) {
                                                    ^
In file included from ../../../../libglusterfs/src/common-utils.h:35:0,
                 from ../../../../libglusterfs/src/circ-buff.h:14,
                 from ../../../../libglusterfs/src/event-history.h:15,
                 from ../../../../libglusterfs/src/xlator.h:18,
                 from ../../../../libglusterfs/src/call-stub.h:14,
                 from jbr-cg.c:17:
jbr-cg.c: In function 'jbr_next_entry':
jbr-cg.c:10122:33: warning: format '%ld' expects argument of type 'long int', but argument 10 has type 'ssize_t {aka int}' [-Wformat=]
                                 "got %ld/%d bytes for next entry",
                                 ^
../../../../libglusterfs/src/logging.h:213:51: note: in definition of macro 'gf_msg'
                         levl, errnum, 0, msgid, ##fmt);         \
                                                   ^~~
  CCLD     jbr.la




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Yaniv Kaul 2019-04-17 09:54:28 UTC
commit 8293d21280fd6ddfc9bb54068cf87794fc6be207
Author: Amar Tumballi <amarts>
Date:   Thu Dec 6 12:29:25 2018 +0530

    all: remove code which is not being considered in build
    
    These xlators are now removed from build as per discussion/announcement
    done at https://lists.gluster.org/pipermail/gluster-users/2018-July/034400.html
    
    * move rot-13 to playground, as it is used only as demo
      purpose, and is documented in many places.
    
    * Removed code of below xlators:
      - cluster/stripe
      - cluster/tier
      - features/changetimerecorder
      - features/glupy
      - performance/symlink-cache
      - encryption/crypt
      - storage/bd
      - experimental/posix2
      - experimental/dht2
      - experimental/fdl
      - experimental/jbr   <-------