Skip to content

Commit

Permalink
Revised man page and defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Rich Ercolani <[email protected]>
  • Loading branch information
rincebrain committed May 7, 2022
1 parent 10bffc0 commit de07b76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/libzfs_core/libzfs_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,10 @@ max_pipe_buffer(int infd)
* And since the problem is in waking up the writer, there's nothing
* we can do about it from here.
*
* So we add this workaround for people who get bitten.
* So if people want to, they can set this, but they
* may regret it...
*/
if (getenv("ZFS_NO_PIPE_MAX") != NULL)
if (getenv("ZFS_SET_PIPE_MAX") == NULL)
return (cur);
if (cur < max && fcntl(infd, F_SETPIPE_SZ, max) != -1)
cur = max;
Expand Down
8 changes: 8 additions & 0 deletions man/man8/zfs.8
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,14 @@ to use
to mount ZFS datasets.
This option is provided for backwards compatibility with older ZFS versions.
.El
.Bl -tag -width "ZFS_SET_PIPE_MAX"
.It Sy ZFS_SET_PIPE_MAX
Tells
.Nm zfs
to set the maximum pipe size for sends/recieves.
Disabled by default on Linux
due to an unfixed deadlock in Linux's pipe size handling code.
.El
.
.Sh INTERFACE STABILITY
.Sy Committed .
Expand Down

0 comments on commit de07b76

Please sign in to comment.