mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-27 04:32:16 +03:00
libzfs: migrate single-use libzfs_set_pipe_max() to libzfs_core
Notably, this also means that the pipe is expanded before each dataset is received, so updates to /p/s/f/pipe-max-size are reflected for each new dataset Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Rich Ercolani <rincebrain@gmail.com> Reviewed-by: Paul Dagnelie <pcd@delphix.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13133
This commit is contained in:
@@ -5243,13 +5243,6 @@ zfs_receive(libzfs_handle_t *hdl, const char *tosnap, nvlist_t *props,
|
||||
return (-2);
|
||||
}
|
||||
|
||||
/*
|
||||
* It is not uncommon for gigabytes to be processed in zfs receive.
|
||||
* Speculatively increase the buffer size if supported by the platform.
|
||||
*/
|
||||
if (S_ISFIFO(sb.st_mode))
|
||||
libzfs_set_pipe_max(infd);
|
||||
|
||||
if (props) {
|
||||
err = nvlist_lookup_string(props, "origin", &originsnap);
|
||||
if (err && err != ENOENT)
|
||||
|
||||
Reference in New Issue
Block a user