rpc: add FilesystemVersionsRequest

This commit is contained in:
Christian Schwarz
2017-05-03 17:12:15 +02:00
parent f46fb2f34f
commit 43f67d2b7c
3 changed files with 57 additions and 0 deletions
+7
View File
@@ -1,6 +1,7 @@
package rpc
import "io"
import "github.com/zrepl/zrepl/zfs"
type RequestId [16]byte
type RequestType uint8
@@ -10,6 +11,7 @@ const (
RTFilesystemRequest = 16
RTInitialTransferRequest = 17
RTIncrementalTransferRequest = 18
RTFilesystemVersionsRequest = 19
)
type RequestHeader struct {
@@ -21,6 +23,10 @@ type FilesystemRequest struct {
Roots []string
}
type FilesystemVersionsRequest struct {
Filesystem zfs.DatasetPath
}
type InitialTransferRequest struct {
Snapshot string // tank/my/db@ljlsdjflksdf
}
@@ -60,6 +66,7 @@ const (
ROK = 1
RFilesystems = 2
RChunkedStream = 3
RFilesystemDiff = 4
)
type ResponseHeader struct {