Function gkfs::rpc::forward_get_dirents_single(const string&, int)

Function Documentation

pair<int, unique_ptr<vector<tuple<const std::string, bool, size_t, time_t>>>> gkfs::rpc::forward_get_dirents_single(const string &path, int server)

Send an RPC request to receive all entries of a directory in a server.

Parameters:
  • path

  • server

Returns:

error code Returns a tuple with path-isdir-size and ctime We still use dirents_buff_size, but we need to match in the client side, as the buffer is provided by the “gfind” applications However, as we only ask for a server the size should be enought for most of the scenarios. We are reusing the forward_get_dirents code. As we only need a server, we could simplify the code removing the asynchronous part.