Function gkfs::rpc::forward_truncate(const std::string&, size_t, size_t, const int8_t)

Function Documentation

int gkfs::rpc::forward_truncate(const std::string &path, size_t current_size, size_t new_size, const int8_t num_copies)

Send an RPC request to truncate a file to given new size

Parameters:
  • path

  • current_size

  • new_size

  • num_copies – Number of replicas

Returns:

error code