aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/Connection.hxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Copyright year 2015Max Kellermann2015-01-011-1/+1
|
* lib/nfs/Connection: implement mount timeoutMax Kellermann2014-12-151-2/+7
|
* lib/nfs/Connection: add debug flag "in_destroy"Max Kellermann2014-12-151-0/+5
|
* lib/nfs/Connection: fix memory leak (and assertion failure)Max Kellermann2014-12-141-0/+7
| | | | | | | | | | | nfs_destroy_context() will invoke all pending callbacks with err==-EINTR. In CancellableCallback::Callback(), this will invoke NfsConnection::DeferClose(), which however is only designed to be called from nfs_service(). In non-debug mode, this will leak memory because nfs_close_async() is never called. Workaround: before nfs_destroy_context(), invoke nfs_close_async() on all pending file handles.
* lib/nfs/Connection: move code to Service()Max Kellermann2014-12-141-0/+5
|
* lib/nfs/Connection: move code to method InternalClose()Max Kellermann2014-12-141-0/+5
|
* lib/nfs/Connection: make in_service and in_event debug-only flagsMax Kellermann2014-12-141-0/+2
|
* lib/nfs/Connection: add methods {Open,Read,Close}Directory()Max Kellermann2014-10-071-0/+10
|
* lib/nfs/Connection: add method Stat(path)Max Kellermann2014-10-071-0/+3
|
* lib/nfs/Connection: make GetEventLoop() publicMax Kellermann2014-10-061-4/+4
|
* lib/nfs/FileReader: postpone the nfs_close_async() callMax Kellermann2014-10-011-1/+32
| | | | | | If an async opertion is in progress, nfs_close_async() will make libnfs crash because the RPC callback will dereference an object that was freed by nfs_close_async().
* lib/nfs/Connection: fix memory leak when cancelling Open()Max Kellermann2014-10-011-2/+12
| | | | Close the newly allocated file handle passed to the callback.
* lib/nfs/Connection: remove MutexMax Kellermann2014-10-011-3/+0
| | | | | 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 Kellermann2014-10-011-0/+4
|
* lib/nfs/Connection: remove obsolete flag postponed_destroyMax Kellermann2014-10-011-9/+1
|
* lib/nfs/Connection: remove deprecated move constructor workaroundMax Kellermann2014-10-011-16/+0
| | | | | Not used anymore because NfsManager now uses boost::intrusive::set instead of std::map.
* lib/nfs/Glue: destruct the NfsManager in the I/O threadMax Kellermann2014-10-011-0/+3
| | | | | This allows eliminating the indirection code from the NfsConnection destructor.
* lib/nfs/Cancellable: use boost::intrusive::listMax Kellermann2014-10-011-2/+2
| | | | | Reduce Remove() overhead because we don't have to walk the list to find an iterator by reference.
* lib/nfs/Manager: gcc 4.7 compatibility hackMax Kellermann2014-06-171-0/+16
| | | | std::map::emplace() is only available from gcc 4.8 on.
* input/nfs: use the asynchronous libnfs APIMax Kellermann2014-06-171-0/+160
More robust and cancellable.