aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2011-02-16 17:51:44 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2011-02-16 17:51:44 +0000
commitd8fd10545b677cb4b770674372c1e116b7c22c64 (patch)
tree5653b53ace6704abfeed07c8af6fe25156d3b932 /module
parentd5674448094cec6eb3563afb63cc1e096bc5b280 (diff)
downloadsrc-d8fd10545b677cb4b770674372c1e116b7c22c64.tar.gz
src-d8fd10545b677cb4b770674372c1e116b7c22c64.zip
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zfs_znode.c7
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),