gluster-devel
[Top][All Lists]
Advanced

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

[Gluster-devel] Can't call client volfile glusterfs


From: plrca2
Subject: [Gluster-devel] Can't call client volfile glusterfs
Date: Fri, 21 Aug 2009 09:51:32 +0000

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
reply via email to

[Prev in Thread] Current Thread [Next in Thread]