mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
OpenZFS 9630 - add lzc_rename and lzc_destroy to libzfs_core
Porting Notes: * Additional changes to recv_rename_impl() were required due to encryption code not being merged in OpenZFS yet. * libzfs_core python bindings (pyzfs) were updated to fully support both lzc_rename() and lzc_destroy() Authored by: Andriy Gapon <avg@FreeBSD.org> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Matt Ahrens <matt@delphix.com> Reviewed by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Approved by: Dan McDonald <danmcd@joyent.com> Ported-by: loli10K <ezomori.nozomu@gmail.com> OpenZFS-issue: https://www.illumos.org/issues/9630 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/049ba63 Closes #8207
This commit is contained in:
committed by
Brian Behlendorf
parent
eff7d78f8a
commit
dc1c630b8a
@@ -650,7 +650,6 @@ zfs_destroy(const char *dataset)
|
||||
|
||||
(void) strlcpy(zc.zc_name, dataset, sizeof (zc.zc_name));
|
||||
zc.zc_name[sizeof (zc.zc_name) - 1] = '\0';
|
||||
zc.zc_objset_type = DMU_OST_ZFS;
|
||||
err = ioctl(zfs_fd, ZFS_IOC_DESTROY, &zc);
|
||||
|
||||
return (err == 0 ? 0 : errno);
|
||||
|
||||
Reference in New Issue
Block a user