Fix FIFO and socket handling
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Feb 2011 17:51:44 +0000 (09:51 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Feb 2011 17:51:44 +0000 (09:51 -0800)
commitd8fd10545b677cb4b770674372c1e116b7c22c64
tree5653b53ace6704abfeed07c8af6fe25156d3b932
parentd5674448094cec6eb3563afb63cc1e096bc5b280
Fix FIFO and socket handling

Under Linux when creating a fifo or socket type device in the ZFS
filesystem it's critical that the rdev is stored in a SA.  This
was already being correctly done for character and block devices,
but that logic needed to be extended to include FIFOs and sockets.

This patch takes care of device creation but a follow on patch
may still be required to verify that the dev_t is being correctly
packed/unpacked from the SA.
module/zfs/zfs_znode.c