[Bugs] [Bug 1507896] New: glfs_init returns incorrect errno on faliure

bugzilla at redhat.com bugzilla at redhat.com
Tue Oct 31 11:59:06 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1507896

            Bug ID: 1507896
           Summary: glfs_init returns incorrect errno on faliure
           Product: GlusterFS
           Version: 3.12
         Component: libgfapi
          Severity: low
          Assignee: bugs at gluster.org
          Reporter: dchaplyg at redhat.com
        QA Contact: bugs at gluster.org
                CC: bugs at gluster.org



Description of problem: glfs_init called  with volume name prefixed by '/' 
returns -1 and sets errno to 0.


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


How reproducible: always


Steps to Reproduce:
1. Create some gluster volume, for example 'test'
2. Try to call glfs_init with volume name '/test'

Actual results: glfs_init returns -1 and sets errno to 0. With logging enabled
it will log the following error: 
  E [MSGID: 101091] [graph.c:493:glusterfs_graph_prepare] 0-graph: glusterfs
graph settop failed

Expected results: glfs_init should set errno to some meaningful value and
correctly report volume name incorrectness.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list