Set the snapshot context for use when writing to objects
This is stored in the io context, and applies to all future writes.
@param io the io context to change
@param seq the newest snapshot sequence number for the pool
@param snaps array of snapshots in sorted by descending id
@param num_snaps how many snaphosts are in the snaps array
@returns 0 on success, negative error code on failure
@returns -EINVAL if snaps are not in descending order
Set the snapshot context for use when writing to objects
This is stored in the io context, and applies to all future writes.
@param io the io context to change @param seq the newest snapshot sequence number for the pool @param snaps array of snapshots in sorted by descending id @param num_snaps how many snaphosts are in the snaps array @returns 0 on success, negative error code on failure @returns -EINVAL if snaps are not in descending order