diff options
| author | Matt Macy <mmacy@FreeBSD.org> | 2020-09-04 22:25:14 +0000 |
|---|---|---|
| committer | Matt Macy <mmacy@FreeBSD.org> | 2020-09-04 22:25:14 +0000 |
| commit | eac7052fdebb90caf2f653e06187bdbca837b9c7 (patch) | |
| tree | 7239679d0ef872f6768f57c2ae6e6db54576013d /lib/libbe | |
| parent | 46b974a9dbc08c432385b68092b7e34b683c38e1 (diff) | |
| parent | b0a96e5e2d3c9480ec89dd4c034c7fe4f97abfe1 (diff) | |
Notes
Diffstat (limited to 'lib/libbe')
| -rw-r--r-- | lib/libbe/be.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libbe/be.c b/lib/libbe/be.c index a0de973cd478..72f937453b08 100644 --- a/lib/libbe/be.c +++ b/lib/libbe/be.c @@ -996,8 +996,11 @@ be_rename(libbe_handle_t *lbh, const char *old, const char *new) ZFS_TYPE_FILESYSTEM)) == NULL) return (set_error(lbh, BE_ERR_ZFSOPEN)); - - err = zfs_rename(zfs_hdl,full_new, B_FALSE, B_FALSE); + /* recurse, nounmount, forceunmount */ + struct renameflags flags = { + .nounmount = 1, + }; + err = zfs_rename(zfs_hdl, full_new, flags); zfs_close(zfs_hdl); if (err != 0) |
