Difference between revisions of "Documentation/ZfsSend"

Jump to navigation Jump to search
no edit summary
Line 132: Line 132:
|}
|}
</center>
</center>
We won’t go into detail on each of these functions, but it is useful to consider at least one so let’s take a look at restore_write.
restore_write first retrieves the actual modified data block from the send stream using restore_read. It then creates a transaction, assigns that transaction to the current TXG_WAIT transaction group, and associates a write to the specified object at the specified offset and length with that new transaction. Finally, it commits that transaction.
dmu_recv_end then performs cleanup of the transformed dataset following successful completion of dmu_recv_stream. Like dmu_recv_begin, dmu_recv_end performs its work inside of a sync task.
Editor
90

edits

Navigation menu