zfs/lib/libzfs
наб 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
..
os libzfs: migrate single-use libzfs_set_pipe_max() to libzfs_core 2022-03-08 09:33:04 -08:00
.gitignore Clean up lib dependencies 2020-07-10 14:26:00 -07:00
Makefile.am libzfs: migrate single-use libzfs_set_pipe_max() to libzfs_core 2022-03-08 09:33:04 -08:00
THIRDPARTYLICENSE.openssl Fix typos in lib/ 2019-09-02 17:53:27 -07:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00
libzfs.abi Flex non-pretty-printed properties and raw-/pretty-print remaining ones 2022-03-04 12:08:33 -08:00
libzfs.pc.in Spruce up pkg-config files for libzfs/libzfs_core 2020-09-04 11:11:18 -07:00
libzfs.suppr Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00
libzfs_changelist.c libzfs: share_proto: constify, staticify 2022-02-01 16:56:40 -08:00
libzfs_config.c libzfs: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
libzfs_crypto.c libzfs: const correctness 2022-02-01 16:56:18 -08:00
libzfs_dataset.c Flex non-pretty-printed properties and raw-/pretty-print remaining ones 2022-03-04 12:08:33 -08:00
libzfs_diff.c libzfs: diff: simplify superfluous stdio 2021-12-13 15:50:38 -08:00
libzfs_impl.h libzfs: migrate single-use libzfs_set_pipe_max() to libzfs_core 2022-03-08 09:33:04 -08:00
libzfs_import.c libzfs: don't distribute libzfs_impl.h 2021-06-03 13:17:35 -07:00
libzfs_iter.c Revert "zfs list: Allow more fields in ZFS_ITER_SIMPLE mode" 2022-01-06 11:12:53 -08:00
libzfs_mount.c Add `--enable-asan` and `--enable-ubsan` switches 2022-02-03 14:35:38 -08:00
libzfs_pool.c Flex non-pretty-printed properties and raw-/pretty-print remaining ones 2022-03-04 12:08:33 -08:00
libzfs_sendrecv.c libzfs, libzfs_core: send: always write to pipe 2022-03-08 09:33:08 -08:00
libzfs_status.c libzfs: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
libzfs_util.c libzfs: util: don't check for allocation errors from infallible zfs_*() 2022-03-04 12:08:33 -08:00