]> granicus.if.org Git - zfs/commit
Retire send space estimation via ZFS_IOC_SEND
authorLOLi <loli10K@users.noreply.github.com>
Thu, 31 Aug 2017 16:00:35 +0000 (18:00 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 31 Aug 2017 16:00:35 +0000 (09:00 -0700)
commitcf7684bc8d57ace26d086027e8059c725fd9ff92
treebe5019f83891bdad022feb5b90cd7723a93547e1
parent1afc54f7f4f88902d0a3a3d88f6c7c6311c886ee
Retire send space estimation via ZFS_IOC_SEND

Add a small wrapper around libzfs_core`lzc_send_space() to libzfs so
that every legacy ZFS_IOC_SEND consumer, along with their userland
counterpart estimate_ioctl(), can leverage ZFS_IOC_SEND_SPACE to
request send space estimation.

The legacy functionality in zfs_ioc_send() is left untouched for
compatibility purposes.

Reviewed by: Thomas Caputi <tcaputi@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6029
lib/libzfs/libzfs_sendrecv.c
lib/libzfs_core/libzfs_core.c
module/zfs/zfs_ioctl.c