mirror_zfs/lib
наб 3a909fe33e libzfs, libzfs_core: send: always write to pipe
By introducing lzc_send_wrapper() and routing all ZFS_IOC_SEND*
users through it, we fix a Linux 5.10-introduced bug (see comment)

This is all /transparent/ to the users API, ABI, and usage-wise,
and disabled on FreeBSD and if the output is already a pipe,
and transparently nestable (i.e. zfs_send_one() is wrapped,
but so is lzc_send_redacted() it calls to ‒ this wouldn't be strictly
necessary if ZFS_IOC_SEND_PROGRESS wasn't strictly denominational w.r.t.
the descriptor the send is happening on)

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Co-authored-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11445
Closes #13133
2022-03-08 09:33:08 -08:00
..
libavl lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden 2021-06-09 17:04:32 -07:00
libefi libefi: remove efi_type() 2022-01-18 14:40:43 -08:00
libicp module: icp: rip out modhash. Replace the one user with AVL 2022-02-15 16:24:59 -08:00
libnvpair libnvpair: json: suppress wchar_t >=0 warnings 2022-02-18 09:34:43 -08:00
libshare userspace: mark arguments used 2022-02-18 09:34:08 -08:00
libspl Handle aarch64 defines seperate from arm 2022-03-07 17:49:34 -08:00
libtpool libtpool: -Wno-clobbered 2022-02-18 09:34:25 -08:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Use _Noreturn (C11; GNU89) properly 2022-03-04 16:25:22 -08:00
libzfs libzfs, libzfs_core: send: always write to pipe 2022-03-08 09:33:08 -08:00
libzfs_core libzfs, libzfs_core: send: always write to pipe 2022-03-08 09:33:08 -08:00
libzfsbootenv Rename fallthrough to zfs_fallthrough 2022-02-15 08:58:59 -08:00
libzpool Use _Noreturn (C11; GNU89) properly 2022-03-04 16:25:22 -08:00
libzstd Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
libzutil zed: Misc multipath autoreplace fixes 2022-02-24 11:43:39 -08:00
Makefile.am Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00