Whamcloud - gitweb
Revert "LU-1346 libcfs: replace CFS_CAP_XXX with kernel definition"
[fs/lustre-release.git] / libcfs / libcfs / winnt / winnt-module.c
index 72edda0..e44f28f 100644 (file)
@@ -142,7 +142,7 @@ libcfs_ioctl(struct file *file, unsigned int cmd, ulong_ptr_t arg)
        /* Handle platform-dependent IOC requests */
        switch (cmd) { 
        case IOC_LIBCFS_PANIC: 
-               if (!cfs_capable(CAP_SYS_BOOT))
+               if (!cfs_capable(CFS_CAP_SYS_BOOT)) 
                        return (-EPERM); 
                CERROR("debugctl-invoked panic");
                KeBugCheckEx('LUFS', (ULONG_PTR)libcfs_ioctl, (ULONG_PTR)NULL, (ULONG_PTR)NULL, (ULONG_PTR)NULL);
@@ -150,7 +150,7 @@ libcfs_ioctl(struct file *file, unsigned int cmd, ulong_ptr_t arg)
                return (0);
        case IOC_LIBCFS_MEMHOG:
 
-               if (!cfs_capable(CAP_SYS_ADMIN))
+               if (!cfs_capable(CFS_CAP_SYS_ADMIN)) 
                        return -EPERM;
         break;
        }