Can't call client volfile glusterfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This works:
option volume-filename.glusterfs-a /etc/glusterfs/glusterfs-client.vol

This does not:
option volume-filename.glusterfs /etc/glusterfs/glusterfs-client.vol

When I use the second line, I get errors on the client about the config file changing.
Any idea what might be causing this? I am using the latest 2.0git as of August 10.

Also while looking through the code, I noticed that sometimes you guys use dict_get_str() and sometimes you use dict_get() followed up by a gf_string2*().
Is there a preferred/more efficient method or does it not matter? After writing this, I see that in the case I am looking at (server_protocol.c line 7676), it's a dict_get followed by a gf_string2bool(). Is there a reason that dict_get_bool() does not exist? Another thing I noticed is that in those same places there are tests to see if the calls fail,
which they can only do in case if a bad config file (right?), but the config file is checked for correctness by upon loading. That would make those checks unnecessary, correct?

These questions are not meant to be critical; I am new to reading (and modifying!) code and am unfamiliar with best-practices.

Thanks in advance for your help,
-Paul

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux