The object is filled with the provided data. If the object exists,
it is atomically truncated and then written.
Queues the write_full and returns.
The return value of the completion will be 0 on success, negative
error code on failure.
@param io the io context in which the write will occur
@param oid name of the object
@param completion what to do when the write_full is safe and complete
@param buf data to write
@param len length of the data, in bytes
@returns 0 on success, -EROFS if the io context specifies a snap_seq
other than LIBRADOS_SNAP_HEAD
Asychronously write an entire object
The object is filled with the provided data. If the object exists, it is atomically truncated and then written. Queues the write_full and returns.
The return value of the completion will be 0 on success, negative error code on failure.
@param io the io context in which the write will occur @param oid name of the object @param completion what to do when the write_full is safe and complete @param buf data to write @param len length of the data, in bytes @returns 0 on success, -EROFS if the io context specifies a snap_seq other than LIBRADOS_SNAP_HEAD