Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
xattr.c File Reference
#include "ext3.h"
#include <linux/mbcache.h>
#include <linux/quotaops.h>
#include "xattr.h"
#include "acl.h"

Go to the source code of this file.

Data Structures

struct  ext3_xattr_info
 
struct  ext3_xattr_search
 
struct  ext3_xattr_block_find
 
struct  ext3_xattr_ibody_find
 

Macros

#define BHDR(bh)   ((struct ext3_xattr_header *)((bh)->b_data))
 
#define ENTRY(ptr)   ((struct ext3_xattr_entry *)(ptr))
 
#define BFIRST(bh)   ENTRY(BHDR(bh)+1)
 
#define IS_LAST_ENTRY(entry)   (*(__u32 *)(entry) == 0)
 
#define IHDR(inode, raw_inode)
 
#define IFIRST(hdr)   ((struct ext3_xattr_entry *)((hdr)+1))
 
#define ea_idebug(f...)
 
#define ea_bdebug(f...)
 
#define header(x)   ((struct ext3_xattr_header *)(x))
 
#define NAME_HASH_SHIFT   5
 
#define VALUE_HASH_SHIFT   16
 
#define BLOCK_HASH_SHIFT   16
 

Functions

ssize_t ext3_listxattr (struct dentry *dentry, char *buffer, size_t size)
 
int ext3_xattr_get (struct inode *inode, int name_index, const char *name, void *buffer, size_t buffer_size)
 
int ext3_xattr_set_handle (handle_t *handle, struct inode *inode, int name_index, const char *name, const void *value, size_t value_len, int flags)
 
int ext3_xattr_set (struct inode *inode, int name_index, const char *name, const void *value, size_t value_len, int flags)
 
void ext3_xattr_delete_inode (handle_t *handle, struct inode *inode)
 
void ext3_xattr_put_super (struct super_block *sb)
 
int __init init_ext3_xattr (void)
 
void exit_ext3_xattr (void)
 

Variables

struct xattr_handlerext3_xattr_handlers []
 

Macro Definition Documentation

#define BFIRST (   bh)    ENTRY(BHDR(bh)+1)

Definition at line 61 of file xattr.c.

#define BHDR (   bh)    ((struct ext3_xattr_header *)((bh)->b_data))

Definition at line 59 of file xattr.c.

#define BLOCK_HASH_SHIFT   16

Definition at line 1285 of file xattr.c.

#define ea_bdebug (   f...)

Definition at line 88 of file xattr.c.

#define ea_idebug (   f...)

Definition at line 87 of file xattr.c.

#define ENTRY (   ptr)    ((struct ext3_xattr_entry *)(ptr))

Definition at line 60 of file xattr.c.

#define header (   x)    ((struct ext3_xattr_header *)(x))
#define IFIRST (   hdr)    ((struct ext3_xattr_entry *)((hdr)+1))

Definition at line 69 of file xattr.c.

#define IHDR (   inode,
  raw_inode 
)
Value:
((void *)raw_inode + \
EXT3_GOOD_OLD_INODE_SIZE + \
EXT3_I(inode)->i_extra_isize))

Definition at line 64 of file xattr.c.

#define IS_LAST_ENTRY (   entry)    (*(__u32 *)(entry) == 0)

Definition at line 62 of file xattr.c.

#define NAME_HASH_SHIFT   5

Definition at line 1248 of file xattr.c.

#define VALUE_HASH_SHIFT   16

Definition at line 1249 of file xattr.c.

Function Documentation

void exit_ext3_xattr ( void  )

Definition at line 1326 of file xattr.c.

ssize_t ext3_listxattr ( struct dentry dentry,
char buffer,
size_t  size 
)

Definition at line 143 of file xattr.c.

void ext3_xattr_delete_inode ( handle_t *  handle,
struct inode inode 
)

Definition at line 1087 of file xattr.c.

int ext3_xattr_get ( struct inode inode,
int  name_index,
const char name,
void buffer,
size_t  buffer_size 
)

Definition at line 314 of file xattr.c.

void ext3_xattr_put_super ( struct super_block sb)

Definition at line 1120 of file xattr.c.

int ext3_xattr_set ( struct inode inode,
int  name_index,
const char name,
const void value,
size_t  value_len,
int  flags 
)

Definition at line 1053 of file xattr.c.

int ext3_xattr_set_handle ( handle_t *  handle,
struct inode inode,
int  name_index,
const char name,
const void value,
size_t  value_len,
int  flags 
)

Definition at line 941 of file xattr.c.

int __init init_ext3_xattr ( void  )

Definition at line 1317 of file xattr.c.

Variable Documentation

struct xattr_handler* ext3_xattr_handlers[]
Initial value:

Definition at line 114 of file xattr.c.