Fix O(n^2) algorithm to insert lost objects into a directory, which would
become very slow with large directories (e.g. 100,000 files unattached)
due to repeated reading and writing of the directory.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2159 9c52e268-1103-0410-960d-c6a436f6b474
Remove obsolete BackupStoreCheck::InsertObjectIntoDirectory class,
replaced with BackupStoreDirectoryFixer.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2160 9c52e268-1103-0410-960d-c6a436f6b474
Define Box module name on the compiler command line (useful for tests 
self-reporting and setting logger tags).

Add the "c" option to "ar" to suppress warning messages about creating 
archives.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2163 9c52e268-1103-0410-960d-c6a436f6b474
Add new bbackupd config files for bbackupd test.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2164 9c52e268-1103-0410-960d-c6a436f6b474
Add support to notifyscript to use a tag, useful for tests with 
frequently-generated messages such as backup-start.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2165 9c52e268-1103-0410-960d-c6a436f6b474
Set program name in tests to module name (e.g. test/bbackupd).

Add option to show PID in logs (-P) in tests.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2166 9c52e268-1103-0410-960d-c6a436f6b474
Check for cxxabi.h (C++ name demangling for stack traces on libstdc++)


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2167 9c52e268-1103-0410-960d-c6a436f6b474
Remove redundant copies of flags from make command line.

Place CXXFLAGS and LDFLAGS in Makefiles so that they can be overridden 
by users who know what they are doing.

Add LDADD_RDYNAMIC to LDFLAGS to enable -rdynamic for symbolic stack 
traces.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2168 9c52e268-1103-0410-960d-c6a436f6b474
Add backtrace on exception in release builds.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2169 9c52e268-1103-0410-960d-c6a436f6b474
Initialise the exists variable and fix its type.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2170 9c52e268-1103-0410-960d-c6a436f6b474
Move ServerControl functions out of line and into their own source file.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2171 9c52e268-1103-0410-960d-c6a436f6b474
Add a GetMessage() method to Protocol objects to return a stringified 
message as a string.

Fix a typo in a comment.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2172 9c52e268-1103-0410-960d-c6a436f6b474
Reformat for readability.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2173 9c52e268-1103-0410-960d-c6a436f6b474
Separate checks for file existing and file not empty.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2174 9c52e268-1103-0410-960d-c6a436f6b474
Add static Logging::GetNamedLevel() method to return a log level 
specified by name as a string.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2175 9c52e268-1103-0410-960d-c6a436f6b474
Reformat for readability.

Log removal of directories by housekeeping.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2176 9c52e268-1103-0410-960d-c6a436f6b474
Move loading configuration into a separate method.

Add -W<level> option to set warning level explicitly.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2177 9c52e268-1103-0410-960d-c6a436f6b474
Demangle C++ names in backtrace on GCC using C++ ABI routines.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2178 9c52e268-1103-0410-960d-c6a436f6b474
Catch exception on reading a directory that doesn't exist, and return a 
protocol error message instead.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2179 9c52e268-1103-0410-960d-c6a436f6b474
Shorten names used by daemons.


git-svn-id: https://www.boxbackup.org/svn/box/trunk@2180 9c52e268-1103-0410-960d-c6a436f6b474