aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/FileReader.cxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib/nfs/FileReader: clean up on disconnectMax Kellermann2014-11-251-1/+1
| | | | | Avoids crash because Close() invokes a call on a destructed NfsConnection.
* lib/nfs/FileReader: move code to CancelOrClose()Max Kellermann2014-11-251-0/+10
|
* lib/nfs/FileReader: reset state in OnNfsConnectionFailed()Max Kellermann2014-11-251-0/+2
| | | | | Avoid calling NfsConnection::RemoveLease(), because the lease has been removed already.
* lib/nfs/FileReader: update "state" in OnNfsError()Max Kellermann2014-11-251-0/+24
| | | | | | Clean up the "state" to indicate that there is no longer any asynchronous operation. Fixes another NFS-related crash due to cleanup of a non-existing asynchronous operation.
* lib/nfs/Base: kludge to reduce number of NFS mountsMax Kellermann2014-10-051-7/+17
| | | | | | | Creating a NfsStorage sets its own export_name as the "base". Now NfsFileReader can use this information to derive the export_name to be mounted, instead of guessing. This solves the "too many connection" problem on the NFS server while updating the database.
* lib/nfs/FileReader: postpone the nfs_close_async() callMax Kellermann2014-10-011-4/+11
| | | | | | 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().
* input/nfs: use the asynchronous libnfs APIMax Kellermann2014-06-171-0/+244
More robust and cancellable.