BjoKaSH / maczfs-archive

Legacy MacZFS - Archived here due Google-code shutdown. Automatically exported from code.google.com/p/maczfs -- Do Not Use! Use https://openzfsonosx.org/
Other
1 stars 0 forks source link

zfs send/recv doesn't work on pipes #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using zfs send | zfs recv doesn't work.

There is a workaround, which is to do:

mkfifo foo
zfs send > foo &
zfs recv < foo &

although this is clearly less than desirable

Original issue reported on code.google.com by alex.ble...@gmail.com on 24 Oct 2009 at 9:37

GoogleCodeExporter commented 9 years ago

Original comment by alex.ble...@gmail.com on 24 Oct 2009 at 9:37

GoogleCodeExporter commented 9 years ago
You can also work around this with a named pipe... which only really makes the
situation more confusing.

Original comment by dsalli...@gmail.com on 24 Oct 2009 at 10:32

GoogleCodeExporter commented 9 years ago
Can you post how to do it as a named pipe here so that others can compare that 
to the mkfifo approach ?

Original comment by alex.ble...@gmail.com on 25 Oct 2009 at 8:11

GoogleCodeExporter commented 9 years ago
        /*XXX NOEL: due to the fact that BSD doesn't support 
         * vnodes for things not of f_type DTYPE_VNODE we
         * currently can't handle pipes. This will be fixed as
         * soon as we have signed kexts so we are allowed to use the kernel 
         * interface to write to PIPE objects.
         */
This note comes from usr/src/uts/common/fs/zfs/zfs_ioctl.c which might be a 
place to fix references
http://github.com/alblue/mac-zfs/blob/master/usr/src/uts/common/fs/zfs/zfs_ioctl
.c

Original comment by alex.ble...@gmail.com on 20 Feb 2010 at 5:26

GoogleCodeExporter commented 9 years ago

Original comment by alex.ble...@gmail.com on 6 Mar 2010 at 1:32