aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/FileReader.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-11-25lib/nfs/FileReader: clean up on disconnectMax Kellermann1-1/+1
Avoids crash because Close() invokes a call on a destructed NfsConnection.
2014-11-25lib/nfs/FileReader: move code to CancelOrClose()Max Kellermann1-0/+10
2014-11-25lib/nfs/FileReader: reset state in OnNfsConnectionFailed()Max Kellermann1-0/+2
Avoid calling NfsConnection::RemoveLease(), because the lease has been removed already.
2014-11-25lib/nfs/FileReader: update "state" in OnNfsError()Max Kellermann1-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.
2014-10-05lib/nfs/Base: kludge to reduce number of NFS mountsMax Kellermann1-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.
2014-10-01lib/nfs/FileReader: postpone the nfs_close_async() callMax Kellermann1-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().
2014-06-17input/nfs: use the asynchronous libnfs APIMax Kellermann1-0/+244
More robust and cancellable.