diff --git a/usr/src/uts/common/fs/zfs/zfs_vnops.c b/usr/src/uts/common/fs/zfs/zfs_vnops.c index 5fd2f920..f9ab4720 100644 --- a/usr/src/uts/common/fs/zfs/zfs_vnops.c +++ b/usr/src/uts/common/fs/zfs/zfs_vnops.c @@ -1671,8 +1671,13 @@ zfs_create(vnode_t *dvp, char *name, vattr_t *vap, vcexcl_t excl, zflg |= ZCILOOK; #endif +#ifdef __APPLE__ + error = zfs_dirent_lock(&dl, dzp, ct->componentname, &zp, zflg, + NULL, NULL); +#else error = zfs_dirent_lock(&dl, dzp, name, &zp, zflg, NULL, NULL); +#endif if (error) { if (strcmp(name, "..") == 0) error = EISDIR;