Simplify "fork then io.Reader" abstractions

This commit is contained in:
Christian Schwarz
2017-05-08 21:28:18 +02:00
parent 54778c0374
commit dd6dd60e98
3 changed files with 66 additions and 103 deletions

View File

@@ -114,7 +114,7 @@ func ZFSSend(fs DatasetPath, from, to *FilesystemVersion) (stream io.Reader, err
args = append(args, "-i", from.ToAbsPath(fs), to.ToAbsPath(fs))
}
stream, err = NewForkReader(ZFS_BINARY, args...)
stream, err = NewForkExecReader(ZFS_BINARY, args...)
return
}