summaryrefslogtreecommitdiff
path: root/lib/raidfile
Commit message (Collapse)AuthorAge
* Reduce test output noise by hiding some error messages in tests.Chris Wilson2015-02-25
| | | | | Should make the Travis logs shorter and more readable.
* Improve some exception messages in lib/raidfile.Chris Wilson2014-12-26
| | | | | Use the new macros to ensure that exceptions contain a message and filename, following the new standard format.
* Fix test failures caused by using plain stat() instead of emu_stat().Chris Wilson2014-12-26
| | | | | | | On Windows, plain stat() no longer handles slashes in filenames correctly (since upgrading MinGW? Or switching to 64-bit Windows?). We need to use POSIX fstat() for now in RaidFile, but we can still use the emu_stat, and in fact we should, to fix path translation.
* Fix more compile errors on MinGWChris Wilson2014-12-26
|
* Handle raidfile versioning better on low time accuracy systems.Chris Wilson2014-09-04
| | | | | | | | | We simulate a 1 second accuracy clock in DEBUG mode on all systems, to help catch corner cases in tests. This now applies to both RAID and non-RAID files. We always add file size to the version number to help detect changes, especially in such cases. In RELEASE builds, we use as much accuracy from the clock as we can get, as well as file size.
* Simplify code with macros, update comments and fix whitespace.Chris Wilson2014-09-04
| | | | | | Hopefully all of these changes are inconsequential. Merged back changes from the test refactor branch to reduce diffs.
* Fix deadlock waiting for read or write on closed connection.Chris Wilson2014-08-15
| | | | | | | | If the system is suspended then it may not realise that a TCP connection has been closed, while waiting for data to arrive on it. We didn't used to apply a timeout to this read operation. Now we use the connection's default timeout on all read and write operations. Network operations that don't pass a timeout will be logged with a backtrace, so that they can be fixed.
* Add a ToString method to IOStream and some subclasses.Chris Wilson2014-04-29
| | | | | Useful to help debug problems such as invalid file headers when the source of the stream might not be too obvious.
* Fix double parentheses, which llvm complains about.Chris Wilson2014-02-11
|
* Repair damaged Box RAID objects and non-transformed .rfw files.Chris Wilson2013-09-20
|
* Add a comment about removing one RaidFileWrite constructor.Chris Wilson2013-09-20
|
* Fix misleading exception thrown.Chris Wilson2013-09-19
|
* Log the number of the disc set that didn't exist, and the number actually ↵Chris Wilson2012-10-22
| | | | configured.
* Fix double fault causing housekeeping to terminate, thanks to Dave Bamford.Chris Wilson2012-06-11
|
* Improve RaidFile error logging.Chris Wilson2011-03-27
|
* Detect whether we have sys/file.h and don't include it if not, fixes MSVC ↵Chris Wilson2011-03-27
| | | | compile issue.
* Work around lack of unistd.h on MSVC.Chris Wilson2011-03-27
|
* Improve error messages on failure to open a RaidFile for reading.Chris Wilson2011-01-12
|
* Implement write buffering on directories.Chris Wilson2010-09-13
|
* Run Perl scripts quietly during make.Chris Wilson2010-01-24
|
* Allow RaidFileWrite to test that the reference count of an object is Chris Wilson2009-07-05
| | | | | correct before overwriting or deleting it.
* Improve RaidFileWrite error logging.Chris Wilson2009-06-27
|
* Fixes for gcc 4.4.Martin Ebourne2009-04-23
|
* Change default location for config files from /etc/box to Chris Wilson2009-04-09
| | | | | /etc/boxbackup, thanks to Reinhard Tartler and the Debian Project.
* gcc 4.3 and 4.4 compile fixes, thanks to Reinhard Tartler and the DebianChris Wilson2009-04-03
| | | | | | | | project. See also: http://patch-tracking.debian.net/package/boxbackup/0.11~rc2+r2072-1 http://lists.warhead.org.uk/pipermail/boxbackup/2009-April/005159.html
* Switch to C++ include file names.Chris Wilson2009-03-24
|
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Allow reinitialising the RaidFileController by removing any existing Chris Wilson2008-12-26
| | | | | disc sets before adding new ones.
* Fix typo in variable name.Chris Wilson2008-11-15
|
* Log error when rename over RaidFile fails on Windows.Chris Wilson2008-08-03
|
* Additional #includes, thanks to the T2 ProjectChris Wilson2008-04-18
| | | | | (http://www.t2-project.org/packages/boxbackup.html)
* Add an error message giving the file name when an expected raidfileChris Wilson2008-04-09
| | | | | does not exist, to help server operators to figure out what's wrong.
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* Allow configuration of the server port that the client will connect to Chris Wilson2008-03-28
| | | | | | | | | | | | | (bbackupd and bbackupquery). Redesign ConfigurationVerify to use classes instead of structs. Use port 22011 instead of 2201 during tests, to reduce the chances of conflicting with a running bbstored or other process. Ignore autogen_* in svn:ignore everywhere instead of individual per-file ignores.
* Always add file size to timestamp in release mode, to help caching workChris Wilson2008-01-31
| | | | | | | | | | better on machines which claim to support high-res timestamps but actually don't (e.g. Linux, MacOS X). Never do so in debug mode, to help catch problems with the tests failing to sleep long enough between operations on different connections that can break caching subtly and randomly.
* Use @sysconfdir_expanded@ for default config file location.Chris Wilson2008-01-28
| | | | | | | Add some missing semicolons (optional but nicer). Reformat usage message for readability.
* Convert most printf() and fprintf() calls to use logging frameworkChris Wilson2007-08-02
| | | | | instead. (refs #3)
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* Make RaidFileController::Initialise take a std::string instead of aChris Wilson2007-07-26
| | | | | char array, in C++ style. (refs #3, merges [1683])
* Fix erroneous line break.Chris Wilson2007-04-20
|
* Added commentary to RaidFileDoesntExist exception.Chris Wilson2007-04-20
|
* Code formatting (cosmetic) (refs #3, merges [1345])Chris Wilson2007-03-10
|
* Fix memory leak false alarms caused by static allocations.Chris Wilson2006-11-13
|
* Undefine fstat() so that we get the Win32 POSIX version, instead of ourChris Wilson2006-10-16
| | | | | | | emulated version. Small code cleanup. (refs #3)
* (refs #3)Chris Wilson2006-08-31
| | | | | | | | | | | Open files in binary mode (Win32) Disable the lock failure block when we don't have any locking mechanism Close and delete files before renaming over them on Win32. This breaks Ben's desired recovery semantics, so it's not done on other platforms, but Win32 requires it.
* Revert to trunkChris Wilson2006-08-31
|
* (refs #3)Chris Wilson2006-08-31
| | | | | | | Don't include headers that we don't have Open RAID files in binary mode