]> granicus.if.org Git - zfs/commit
Add libzutil for libzfs or libzpool consumers
authorDon Brady <don.brady@delphix.com>
Mon, 5 Nov 2018 19:22:33 +0000 (12:22 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 5 Nov 2018 19:22:33 +0000 (11:22 -0800)
commite89f1295d4faa88bb05a62c8dd5f781657db5955
tree8e39dfe33c6849e00813e54ec95c09a24448a43a
parent6644e5bb6e1a6c25c5006c819abf93c7bb662e80
Add libzutil for libzfs or libzpool consumers

Adds a libzutil for utility functions that are common to libzfs and
libzpool consumers (most of what was in libzfs_import.c).  This
removes the need for utilities to link against both libzpool and
libzfs.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Don Brady <don.brady@delphix.com>
Closes #8050
39 files changed:
cmd/mount_zfs/mount_zfs.c
cmd/zdb/Makefile.am
cmd/zdb/zdb.c
cmd/zed/agents/zfs_mod.c
cmd/zed/zed_disk_event.c
cmd/zfs/zfs_main.c
cmd/zhack/Makefile.am
cmd/zhack/zhack.c
cmd/zinject/Makefile.am
cmd/zinject/translate.c
cmd/zinject/zinject.c
cmd/zpool/zpool_iter.c
cmd/zpool/zpool_main.c
cmd/zpool/zpool_vdev.c
cmd/ztest/Makefile.am
cmd/ztest/ztest.c
configure.ac
include/Makefile.am
include/libzfs.h
include/libzutil.h [new file with mode: 0644]
include/sys/zfs_context.h
include/sys/zfs_ioctl.h
lib/Makefile.am
lib/libzfs/Makefile.am
lib/libzfs/libzfs_dataset.c
lib/libzfs/libzfs_import.c
lib/libzfs/libzfs_iter.c
lib/libzfs/libzfs_pool.c
lib/libzfs/libzfs_sendrecv.c
lib/libzfs/libzfs_status.c
lib/libzfs/libzfs_util.c
lib/libzpool/Makefile.am
lib/libzpool/util.c
lib/libzutil/Makefile.am [new file with mode: 0644]
lib/libzutil/zutil_device_path.c [new file with mode: 0644]
lib/libzutil/zutil_import.c [new file with mode: 0644]
lib/libzutil/zutil_nicenum.c [new file with mode: 0644]
lib/libzutil/zutil_pool.c [new file with mode: 0644]
module/zfs/zio_inject.c