accre / lstore

LStore - A fault-tolerant, performant distributed data storage framework.
http://www.lstore.org
Apache License 2.0
4 stars 5 forks source link

What should the configuration semantics be for overwriting? #116

Open PerilousApricot opened 8 years ago

PerilousApricot commented 8 years ago

When writing an update for lfs_service_manager.sh, I ran across the following. If you set a configuration value more than once, toolbox will use the FIRST version, and not anything afterwards.

This configuration will use the output file from lio-fuse.cfg

%include /etc/lio/lio-fuse.cfg                                                                         
[log_level]                                                                                            
output = $FUSE_LOG                                                                                     
EOF

But this one will use FUSE_LOG

[log_level]                                                                                            
output = $FUSE_LOG                                                     
%include /etc/lio/lio-fuse.cfg                                                                                                                                                        
EOF

This feels backwards to me. What's the right way to handle this?