]> git.proxmox.com Git - mirror_zfs-debian.git/commit - module/zfs/zfs_znode.c
Don't store rdev in SA for FIFOs and sockets
authorNed A. Bass <bass6@llnl.gov>
Mon, 9 May 2011 19:31:56 +0000 (12:31 -0700)
committerNed A. Bass <bass6@llnl.gov>
Mon, 9 May 2011 20:35:07 +0000 (13:35 -0700)
commitaa6d8c10864dd532b1577a84a22da2eaee10fcfd
tree3f07ed9010213d4184c0ce21b92e9c1098059f3c
parent3117dd0b9005eb76e483b9772c493883b82998bb
Don't store rdev in SA for FIFOs and sockets

Update the handling of named pipes and sockets to be consistent with
other platforms with regard to the rdev attribute.  While all ZFS
ipmlementations store the rdev for device files in a system attribute
(SA), this is not the case for FIFOs and sockets.  Indeed, Linux always
passes rdev=0 to mknod() for FIFOs and sockets, so the value is not
needed.  Add an ASSERT that rdev==0 for FIFOs and sockets to detect if
the expected behavior ever changes.

Closes #216
module/zfs/zfs_znode.c
module/zfs/zpl_inode.c