lizardfs/lizardfs — pull request #201 by onlyjob (2014-12-08 06:55:04+00:00)
Title: Drop conf files' fallback location lookup code (legacy):

LizardFS daemons try find their config files in default location in
/etc/mfs. When config file is not found there daemons try to open config
again from legacy location in /etc. If neither configs were found daemons
complain that config file is expected in legacy(!) location which is
rather confusing (and misleading) especially for new users.

I believe this legacy fallback code is not useful and can be completely
dropped in order to reduce maintenance burden because if admins did not
bother to move config files to new location it may hit them anyway in the
future when this code is finally removed. If one upgrades LizardFS daemons
without reading "whatsnew" note about config files re-location they will
simply get a clear error message about where config file is expected on
service restart.

I've made my original patch for version 2.5.4 -- it only partially applies
to "master" so re-factored legacy fallback code still remains in the
following files:

* src/chunkserver/hddspacemgr.cc
* src/main/main.cc
* src/master/exports.cc