[Gluster-users] libgfapi as non-root

2015-03-25 Thread Behrooz Shafiee
Hello everyone, I want to use libgfapi c api in my code. I have installed glusterfs on my host with two bricks and created a volume called 'testvol'; however, in my code 'glfs_init' fails with -1 when I run my program without sudo access. If I run it as root it will connect fine. I saw an email

Re: [Gluster-users] libgfapi as non-root

2015-03-25 Thread Raghavendra Talur
On Thu, Mar 26, 2015 at 10:06 AM, Behrooz Shafiee shafie...@gmail.com wrote: The issue was that I had to restart glusterfs-server or daemon. Thanks, On Thu, Mar 26, 2015 at 12:34 AM, Humble Devassy Chirammal humble.deva...@gmail.com wrote: Hi Behrooz, The error says about testvol2 where

Re: [Gluster-users] libgfapi as non-root

2015-03-25 Thread Behrooz Shafiee
The issue was that I had to restart glusterfs-server or daemon. Thanks, On Thu, Mar 26, 2015 at 12:34 AM, Humble Devassy Chirammal humble.deva...@gmail.com wrote: Hi Behrooz, The error says about testvol2 where the 'gluster volume info' you provided is on testvol [2015-03-25

Re: [Gluster-users] libgfapi as non-root

2015-03-25 Thread Humble Devassy Chirammal
Hi Behrooz, The error says about testvol2 where the 'gluster volume info' you provided is on testvol [2015-03-25 22:50:08.079884] E [glfs-mgmt.c:599:mgmt_getspec_ cbk] 0-glfs-mgmt: failed to fetch volume file (key:testvol2) Can you please cross-check on this ? --Humble On Thu, Mar 26, 2015