]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/wrappers/getiopolicy_np.c
xnu-6153.11.26.tar.gz
[apple/xnu.git] / libsyscall / wrappers / getiopolicy_np.c
index db097ad446de04d3658833285c8492ef2c89dc39..e09f849cce42cc9eb38abb4201a1860fc8ac7795 100644 (file)
@@ -33,7 +33,7 @@ getiopolicy_np(int iotype, int scope)
        int policy, error;
        struct _iopol_param_t iop_param;
 
-       if ((iotype != IOPOL_TYPE_DISK && iotype != IOPOL_TYPE_VFS_ATIME_UPDATES) ||
+       if ((iotype != IOPOL_TYPE_DISK && iotype != IOPOL_TYPE_VFS_ATIME_UPDATES && iotype != IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES) ||
            (scope != IOPOL_SCOPE_PROCESS && scope != IOPOL_SCOPE_THREAD)) {
                errno = EINVAL;
                policy = -1;