diff options
author | Brian Behlendorf <behlendorf1@llnl.gov> | 2011-02-16 17:51:44 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2011-02-16 17:51:44 +0000 |
commit | d8fd10545b677cb4b770674372c1e116b7c22c64 (patch) | |
tree | 5653b53ace6704abfeed07c8af6fe25156d3b932 /module | |
parent | d5674448094cec6eb3563afb63cc1e096bc5b280 (diff) | |
download | src-d8fd10545b677cb4b770674372c1e116b7c22c64.tar.gz src-d8fd10545b677cb4b770674372c1e116b7c22c64.zip |
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/zfs_znode.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c index 02466828767c..56ac2ab8c3a0 100644 --- a/module/zfs/zfs_znode.c +++ b/module/zfs/zfs_znode.c @@ -586,7 +586,8 @@ zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr, size = links = 0; } - if (S_ISBLK(vap->va_mode) || S_ISCHR(vap->va_mode)) + if (S_ISBLK(vap->va_mode) || S_ISCHR(vap->va_mode) || + S_ISFIFO(vap->va_mode) || S_ISSOCK(vap->va_mode)) rdev = zfs_expldev(vap->va_rdev); parent = dzp->z_id; @@ -677,10 +678,10 @@ zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr, &empty_xattr, 8); } if (obj_type == DMU_OT_ZNODE || - (S_ISBLK(vap->va_mode) || S_ISCHR(vap->va_mode))) { + (S_ISBLK(vap->va_mode) || S_ISCHR(vap->va_mode) || + S_ISFIFO(vap->va_mode) || S_ISSOCK(vap->va_mode))) { SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_RDEV(zsb), NULL, &rdev, 8); - } if (obj_type == DMU_OT_ZNODE) { SA_ADD_BULK_ATTR(sa_attrs, cnt, SA_ZPL_FLAGS(zsb), |