Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lib/nfs/Connection: fix memory leak when cancelling Open() | Max Kellermann | 2014-10-01 | 2 | -5/+23 |
| | | | | Close the newly allocated file handle passed to the callback. | ||||
* | lib/nfs/Connection: remove Mutex | Max Kellermann | 2014-10-01 | 2 | -18/+12 |
| | | | | | All locks are currenly held from only a single thread (the IOThread) and thus we don't need the Mutex. | ||||
* | lib/nfs/Connection: add method GetEventLoop() | Max Kellermann | 2014-10-01 | 2 | -1/+5 |
| | |||||
* | lib/nfs/Connection: remove obsolete flag postponed_destroy | Max Kellermann | 2014-10-01 | 2 | -18/+2 |
| | |||||
* | lib/nfs/Connection: remove deprecated move constructor workaround | Max Kellermann | 2014-10-01 | 1 | -16/+0 |
| | | | | | Not used anymore because NfsManager now uses boost::intrusive::set instead of std::map. | ||||
* | lib/nfs/Manager: use boost::intrusive::map | Max Kellermann | 2014-10-01 | 2 | -37/+78 |
| | | | | | Reduce overhead for storing the key twice, and more overhead while looking up the connection to remove it after a failure. | ||||
* | lib/nfs/Glue: add assertion | Max Kellermann | 2014-10-01 | 1 | -0/+4 |
| | |||||
* | lib/nfs/Glue: destruct the NfsManager in the I/O thread | Max Kellermann | 2014-10-01 | 3 | -5/+8 |
| | | | | | This allows eliminating the indirection code from the NfsConnection destructor. | ||||
* | lib/nfs/Glue: eliminate class NfsGlue | Max Kellermann | 2014-10-01 | 1 | -17/+1 |
| | | | | It's just a useless wrapper for class NfsManager. | ||||
* | lib/nfs/Cancellable: use boost::intrusive::list | Max Kellermann | 2014-10-01 | 3 | -40/+18 |
| | | | | | Reduce Remove() overhead because we don't have to walk the list to find an iterator by reference. | ||||
* | nfs/Connection: check for disappearing libnfs socket | Max Kellermann | 2014-08-31 | 1 | -0/+18 |
| | |||||
* | nfs/Connection: use only BroadcastError() | Max Kellermann | 2014-08-31 | 1 | -4/+1 |
| | | | | | Since BroadcastError() calls BroadcastMountError(), there's no need to check mount_finished here. | ||||
* | nfs/Connection: nfs_get_fd() can return -1 | Max Kellermann | 2014-08-31 | 1 | -0/+3 |
| | | | | | While reconnecting to the NFS server, the socket is -1, because there is no socket. Fixes a potential crash (assertion failure). | ||||
* | nfs/Connection: use nfs_get_error() for mount error | Max Kellermann | 2014-08-31 | 1 | -2/+3 |
| | |||||
* | nfs/Connection: fix assertion failure | Max Kellermann | 2014-08-31 | 1 | -1/+3 |
| | |||||
* | *: add missing Compiler.h includes | Max Kellermann | 2014-08-30 | 1 | -0/+1 |
| | | | | Necessary for "final" on gcc 4.6. | ||||
* | lib/nfs/Connection: include poll.h | Max Kellermann | 2014-06-30 | 1 | -0/+2 |
| | |||||
* | lib/nfs/Manager: gcc 4.7 compatibility hack | Max Kellermann | 2014-06-17 | 3 | -0/+32 |
| | | | | std::map::emplace() is only available from gcc 4.8 on. | ||||
* | input/nfs: use the asynchronous libnfs API | Max Kellermann | 2014-06-17 | 11 | -0/+1398 |
| | | | | More robust and cancellable. | ||||
* | input/nfs: move nfs_domain to lib/nfs/Domain.cxx | Max Kellermann | 2014-02-08 | 2 | -0/+51 |