diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2019-09-17 14:15:48 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2019-09-17 14:15:48 +0000 |
| commit | 8569a95e76c88106543ec58c196cf995fd98445d (patch) | |
| tree | 1f3db8723aa174103d79d5350b3cf1db9eb1c3fa /lib/libbe | |
| parent | 7b2f790200c8518657c917e801d741d72f8a03ab (diff) | |
Notes
Diffstat (limited to 'lib/libbe')
| -rw-r--r-- | lib/libbe/be.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libbe/be.c b/lib/libbe/be.c index 849a25859fa5..249fa2f3361c 100644 --- a/lib/libbe/be.c +++ b/lib/libbe/be.c @@ -775,6 +775,7 @@ be_export(libbe_handle_t *lbh, const char *bootenv, int fd) char snap_name[BE_MAXPATHLEN]; char buf[BE_MAXPATHLEN]; zfs_handle_t *zfs; + sendflags_t flags = { 0 }; int err; if ((err = be_snapshot(lbh, bootenv, NULL, true, snap_name)) != 0) @@ -786,7 +787,7 @@ be_export(libbe_handle_t *lbh, const char *bootenv, int fd) if ((zfs = zfs_open(lbh->lzh, buf, ZFS_TYPE_DATASET)) == NULL) return (set_error(lbh, BE_ERR_ZFSOPEN)); - err = zfs_send_one(zfs, NULL, fd, 0); + err = zfs_send_one(zfs, NULL, fd, flags); zfs_close(zfs); return (err); |
