Function gkfs::rpc::forward_read(const string&, void *, const off64_t, const size_t, const int8_t, std::set<int8_t>&)
Defined in File forward_data.cpp
Function Documentation
-
pair<int, ssize_t> gkfs::rpc::forward_read(const string &path, void *buf, const off64_t offset, const size_t read_size, const int8_t num_copies, std::set<int8_t> &failed)
Send an RPC request to read to a buffer.
- Parameters:
path –
buf –
offset –
read_size –
num_copies – number of copies available (0 is no replication)
failed – nodes failed that should not be used
- Returns:
pair<error code, read size>