Function gkfs::rpc::forward_truncate

Function Documentation

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

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

Parameters
  • path

  • current_size

  • new_size

Returns

error code