summaryrefslogtreecommitdiff
path: root/lib/common/FileStream.cpp
Commit message (Collapse)AuthorAge
* Log messages on failure to read, write, stat, seek and close files, with the ↵Chris Wilson2012-01-22
| | | | filename.
* Improve accuracy and utility of FileStream::StreamClosed().Chris Wilson2010-11-17
|
* Log the file name that could not be opened, even for access denied errors.Chris Wilson2009-05-22
|
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Move stream comparison code out of BackupQueries::Compare to Chris Wilson2009-01-04
| | | | | FileStream class.
* Compile fix and log the error number recorded by winerrno, notChris Wilson2008-11-30
| | | | | the "last" error, whatever that was.
* Log the Windows error code if openfile() fails on Windows, asChris Wilson2008-11-30
| | | | | | the default strerror() seems borked and reports EBUSY (file in use) as"Resource device".
* Log reason for failing to write to a file.Chris Wilson2008-09-26
|
* Fix test regression on Windows where a const char pointer was treatedChris Wilson2008-09-07
| | | | | as a file handle instead of as a string.
* Change FileStream constructor to take a const std::string& instead of a Chris Wilson2008-08-21
| | | | | char array pointer, for C++ style.
* Log a warning with the file that couldn't be opened and the error code,Chris Wilson2008-08-06
| | | | | to help debus issues Pete Jalajas is having with Amazon S3 and fuse.
* 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
* Improve logging with macros that consistently output strerror(errno) andChris Wilson2008-03-28
| | | | | | | | | | | | | | | errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
* Add logging in remaining places where Common OSFileOpenError can be thrown.Chris Wilson2007-03-05
| | | | | | | Fix compile warning (signed vs unsigned comparison) (refs #3, merges part of [1099], and [1368])
* Throw CommonException AccessDenied if we didn't get access to the file,Chris Wilson2007-01-15
| | | | | for better error description (refs #3)
* Set the filename to "HANDLE" under Win32 when initialising from anChris Wilson2006-10-16
| | | | | | | | existing handle. Handle ERROR_BROKEN_PIPE as EOF when using FileStream to read from a pipe in LocalProcessStream. (refs #3)
* * Use INVALID_HANDLE_VALUE instead of NULL to represent invalid file Chris Wilson2006-10-13
| | | | | handles under Win32 (refs #3)
* (refs #3)Chris Wilson2006-09-03
| | | | | Use INVALID_HANDLE_VALUE instead of NULL for invalid handles on Win32
* Merged 210:218 from chris/win32/merge/07-win32-fixes to trunkMartin Ebourne2005-12-12
|
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Marged chris/win32/merge/07-win32-fixes at r210 to trunkMartin Ebourne2005-12-12
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14