Function gkfs::metadata::update_size(const std::string&, size_t, off_t, bool)

Function Documentation

off_t gkfs::metadata::update_size(const std::string &path, size_t io_size, off_t offset, bool append)

Updates a metadentry’s size atomically and returns the starting offset for the I/O operation.

Parameters
  • path

  • io_size

  • offset

  • append

Returns

starting offset for I/O operation