ReactOS  0.4.14-dev-323-g6fe6a88
reiserfs_acl.h File Reference
#include <linux/init.h>
#include <linux/posix_acl.h>
#include <linux/xattr_acl.h>
Include dependency graph for reiserfs_acl.h:

Go to the source code of this file.

Classes

struct  reiserfs_acl_entry
 
struct  reiserfs_acl_entry_short
 
struct  reiserfs_acl_header
 

Macros

#define REISERFS_ACL_VERSION   0x0001
 
#define reiserfs_get_acl   NULL
 
#define reiserfs_cache_default_acl(inode)   0
 

Functions

static size_t reiserfs_acl_size (int count)
 
static int reiserfs_acl_count (size_t size)
 
static int reiserfs_xattr_posix_acl_init (void)
 
static int reiserfs_xattr_posix_acl_exit (void)
 
static int reiserfs_acl_chmod (struct inode *inode)
 
static int reiserfs_inherit_default_acl (const struct inode *dir, struct dentry *dentry, struct inode *inode)
 

Macro Definition Documentation

◆ REISERFS_ACL_VERSION

#define REISERFS_ACL_VERSION   0x0001

Definition at line 5 of file reiserfs_acl.h.

◆ reiserfs_cache_default_acl

#define reiserfs_cache_default_acl (   inode)    0

Definition at line 63 of file reiserfs_acl.h.

◆ reiserfs_get_acl

#define reiserfs_get_acl   NULL

Definition at line 62 of file reiserfs_acl.h.

Function Documentation

◆ reiserfs_acl_chmod()

static int reiserfs_acl_chmod ( struct inode inode)
inlinestatic

Definition at line 78 of file reiserfs_acl.h.

79 {
80  return 0;
81 }

◆ reiserfs_acl_count()

static int reiserfs_acl_count ( size_t  size)
inlinestatic

Definition at line 34 of file reiserfs_acl.h.

35 {
36  ssize_t s;
37  size -= sizeof(reiserfs_acl_header);
38  s = size - 4 * sizeof(reiserfs_acl_entry_short);
39  if (s < 0) {
40  if (size % sizeof(reiserfs_acl_entry_short))
41  return -1;
42  return size / sizeof(reiserfs_acl_entry_short);
43  } else {
44  if (s % sizeof(reiserfs_acl_entry))
45  return -1;
46  return s / sizeof(reiserfs_acl_entry) + 4;
47  }
48 }
Definition: reiserfs_acl.h:13
GLsizeiptr size
Definition: glext.h:5919
int ssize_t
Definition: rosdhcp.h:48
GLdouble s
Definition: gl.h:2039
Definition: reiserfs_acl.h:7

◆ reiserfs_acl_size()

static size_t reiserfs_acl_size ( int  count)
inlinestatic

Definition at line 22 of file reiserfs_acl.h.

23 {
24  if (count <= 4) {
25  return sizeof(reiserfs_acl_header) +
27  } else {
28  return sizeof(reiserfs_acl_header) +
29  4 * sizeof(reiserfs_acl_entry_short) +
30  (count - 4) * sizeof(reiserfs_acl_entry);
31  }
32 }
Definition: reiserfs_acl.h:13
GLuint GLuint GLsizei count
Definition: gl.h:1545
Definition: reiserfs_acl.h:7

◆ reiserfs_inherit_default_acl()

static int reiserfs_inherit_default_acl ( const struct inode dir,
struct dentry dentry,
struct inode inode 
)
inlinestatic

Definition at line 84 of file reiserfs_acl.h.

85 {
86  return 0;
87 }

◆ reiserfs_xattr_posix_acl_exit()

static int reiserfs_xattr_posix_acl_exit ( void  )
inlinestatic

Definition at line 72 of file reiserfs_acl.h.

73 {
74  return 0;
75 }

◆ reiserfs_xattr_posix_acl_init()

static int reiserfs_xattr_posix_acl_init ( void  )
inlinestatic

Definition at line 66 of file reiserfs_acl.h.

67 {
68  return 0;
69 }