rpc: Initial|IncrementalTransferRequest transfer zfs data structures

This commit is contained in:
Christian Schwarz
2017-05-07 12:04:16 +02:00
parent fa97d3d98a
commit cd8796aed4
3 changed files with 9 additions and 17 deletions
+5 -3
View File
@@ -36,7 +36,8 @@ type FilesystemVersionsRequest struct {
}
type InitialTransferRequest struct {
Snapshot string // tank/my/db@ljlsdjflksdf
Filesystem zfs.DatasetPath
FilesystemVersion zfs.FilesystemVersion
}
func (r InitialTransferRequest) Respond(snapshotReader io.Reader) {
@@ -44,8 +45,9 @@ func (r InitialTransferRequest) Respond(snapshotReader io.Reader) {
}
type IncrementalTransferRequest struct {
FromSnapshot string
ToSnapshot string
Filesystem zfs.DatasetPath
From zfs.FilesystemVersion
To zfs.FilesystemVersion
}
func (r IncrementalTransferRequest) Respond(snapshotReader io.Reader) {