]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzfs/libzfs_sendrecv.c
Fix 'zfs send -D' segfault
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Jun 2011 20:41:55 +0000 (13:41 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Jun 2011 20:58:48 +0000 (13:58 -0700)
commit1b9d8c340f89ca00b0bc99bb0f8a532e2e7a3a1d
treee96c89dd6c1b42b88e07a8f5e0dbc46c8b78eff7
parentcbc6fab65c201e44de9bda083cfaab209c6b4f7a
Fix 'zfs send -D' segfault

Sending pools with dedup results in a segfault due to a Solaris
portability issue.  Under Solaris the pipe(2) library call
creates a bidirectional data channel.  Unfortunately, on Linux
pipe(2) call creates unidirection data channel.  The fix is to
use the socketpair(2) function to create the expected
bidirectional channel.

Seth Heeren did the original leg work on this issue for zfs-fuse.
We finally just rediscovered the same portability issue and
dfurphy was able to point me at the original issue for the fix.

Closes #268
lib/libzfs/libzfs_sendrecv.c