Skip to content

Commit

Permalink
- Make SendOne compatible with libzfs 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Faruk Kasumovic committed Sep 19, 2019
1 parent e50663f commit 1e7a4fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module github.com/bicomsystems/go-libzfs

go 1.13
4 changes: 2 additions & 2 deletions sendrecv.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func to_boolean_t(a bool) C.boolean_t {

func to_sendflags_t(flags *SendFlags) (cflags *C.sendflags_t) {
cflags = C.alloc_sendflags()
cflags.verbose = to_boolean_t(flags.Verbose)
// cflags.verbose = to_boolean_t(flags.Verbose)
cflags.replicate = to_boolean_t(flags.Replicate)
cflags.doall = to_boolean_t(flags.DoAll)
cflags.fromorigin = to_boolean_t(flags.FromOrigin)
Expand Down Expand Up @@ -163,7 +163,7 @@ func (d *Dataset) SendOne(FromName string, outf *os.File, flags *SendFlags) (err
}
ctoname = C.CString(path.Base(dpath))
defer C.free(unsafe.Pointer(ctoname))
cerr := C.zfs_send_one(d.list.zh, cfromname, C.int(outf.Fd()), lzc_send_flags)
cerr := C.zfs_send_one(d.list.zh, cfromname, C.int(outf.Fd()), &lzc_send_flags, nil)
if cerr != 0 {
err = LastError()
}
Expand Down

0 comments on commit 1e7a4fa

Please sign in to comment.