Skip to content

Commit

Permalink
Avoid piping send directly to /dev/null
Browse files Browse the repository at this point in the history
Unfortunately, #11445 means while we fail gracefully now, we still
fail, unless people want to implement a complex workaround just to
support /dev/null.

So let's just use the cheap workaround in a test for now.

Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
  • Loading branch information
rincebrain committed Dec 16, 2021
1 parent f291fa6 commit 7da0325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/zfs-tests/tests/functional/history/history_006_neg.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ if ! is_linux; then
log_must zfs share $fs
log_must zfs unshare $fs
fi
log_must zfs send -i $snap1 $snap2 > /dev/null
# https://github.com/openzfs/zfs/issues/11445
log_must zfs send -i $snap1 $snap2 | cat > /dev/null
log_must zfs holds $snap1

log_must eval "zpool history $TESTPOOL > $NEW_HISTORY"
Expand Down

0 comments on commit 7da0325

Please sign in to comment.