prototype resumable send & recv

This commit is contained in:
Christian Schwarz
2017-08-18 23:52:33 +02:00
parent e5b713ce5b
commit d12ab6cd57
7 changed files with 234 additions and 3 deletions
+12
View File
@@ -13,6 +13,11 @@ import (
"github.com/zrepl/zrepl/util"
)
var CLICompat struct {
// whether the CLI supports resumable send & recv
ResumableSendRecv bool
}
type DatasetPath struct {
comps []string
}
@@ -239,6 +244,13 @@ func ZFSRecv(fs *DatasetPath, stream io.Reader, additionalArgs ...string) (err e
return nil
}
func ZFSRecvAbort(fs *DatasetPath) (err error) {
if !CLICompat.ResumableSendRecv {
panic("decide if this is an error")
}
panic("not implemented")
}
func ZFSSet(fs *DatasetPath, prop, val string) (err error) {
if strings.ContainsRune(prop, '=') {