Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xfs_attr.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_types.h"
#include "xfs_bit.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_mount.h"
#include "xfs_da_btree.h"
#include "xfs_bmap_btree.h"
#include "xfs_attr_sf.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_alloc.h"
#include "xfs_inode_item.h"
#include "xfs_bmap.h"
#include "xfs_attr.h"
#include "xfs_attr_leaf.h"
#include "xfs_error.h"
#include "xfs_quota.h"
#include "xfs_trans_space.h"
#include "xfs_vnodeops.h"
#include "xfs_trace.h"

Go to the source code of this file.

Macros

#define ATTR_RMTVALUE_MAPSIZE   1 /* # of map entries at once */
 
#define ATTR_ENTBASESIZE
 
#define ATTR_ENTSIZE(namelen)
 

Functions

STATIC int xfs_attr_shortform_addname (xfs_da_args_t *args)
 
STATIC int xfs_attr_leaf_get (xfs_da_args_t *args)
 
STATIC int xfs_attr_leaf_addname (xfs_da_args_t *args)
 
STATIC int xfs_attr_leaf_removename (xfs_da_args_t *args)
 
STATIC int xfs_attr_leaf_list (xfs_attr_list_context_t *context)
 
STATIC int xfs_attr_node_get (xfs_da_args_t *args)
 
STATIC int xfs_attr_node_addname (xfs_da_args_t *args)
 
STATIC int xfs_attr_node_removename (xfs_da_args_t *args)
 
STATIC int xfs_attr_node_list (xfs_attr_list_context_t *context)
 
STATIC int xfs_attr_fillstate (xfs_da_state_t *state)
 
STATIC int xfs_attr_refillstate (xfs_da_state_t *state)
 
STATIC int xfs_attr_rmtval_set (xfs_da_args_t *args)
 
STATIC int xfs_attr_rmtval_remove (xfs_da_args_t *args)
 
STATIC int xfs_attr_name_to_xname (struct xfs_name *xname, const unsigned char *aname)
 
STATIC int xfs_inode_hasattr (struct xfs_inode *ip)
 
STATIC int xfs_attr_get_int (struct xfs_inode *ip, struct xfs_name *name, unsigned char *value, int *valuelenp, int flags)
 
int xfs_attr_get (xfs_inode_t *ip, const unsigned char *name, unsigned char *value, int *valuelenp, int flags)
 
STATIC int xfs_attr_calc_size (struct xfs_inode *ip, int namelen, int valuelen, int *local)
 
STATIC int xfs_attr_set_int (struct xfs_inode *dp, struct xfs_name *name, unsigned char *value, int valuelen, int flags)
 
int xfs_attr_set (xfs_inode_t *dp, const unsigned char *name, unsigned char *value, int valuelen, int flags)
 
STATIC int xfs_attr_remove_int (xfs_inode_t *dp, struct xfs_name *name, int flags)
 
int xfs_attr_remove (xfs_inode_t *dp, const unsigned char *name, int flags)
 
int xfs_attr_list_int (xfs_attr_list_context_t *context)
 
STATIC int xfs_attr_put_listent (xfs_attr_list_context_t *context, int flags, unsigned char *name, int namelen, int valuelen, unsigned char *value)
 
int xfs_attr_list (xfs_inode_t *dp, char *buffer, int bufsize, int flags, attrlist_cursor_kern_t *cursor)
 
int xfs_attr_inactive (xfs_inode_t *dp)
 
int xfs_attr_rmtval_get (xfs_da_args_t *args)
 

Macro Definition Documentation

#define ATTR_ENTBASESIZE
Value:
/* minimum bytes used by an attr */ \
(((struct attrlist_ent *) 0)->a_name - (char *) 0)

Definition at line 649 of file xfs_attr.c.

#define ATTR_ENTSIZE (   namelen)
Value:
/* actual bytes used by an attr */ \
((ATTR_ENTBASESIZE + (namelen) + 1 + sizeof(u_int32_t)-1) \
& ~(sizeof(u_int32_t)-1))

Definition at line 651 of file xfs_attr.c.

#define ATTR_RMTVALUE_MAPSIZE   1 /* # of map entries at once */

Definition at line 83 of file xfs_attr.c.

Function Documentation

STATIC int xfs_attr_calc_size ( struct xfs_inode *  ip,
int  namelen,
int  valuelen,
int local 
)

Definition at line 193 of file xfs_attr.c.

STATIC int xfs_attr_fillstate ( xfs_da_state_t state)

Definition at line 1650 of file xfs_attr.c.

int xfs_attr_get ( xfs_inode_t *  ip,
const unsigned char name,
unsigned char value,
int valuelenp,
int  flags 
)

Definition at line 164 of file xfs_attr.c.

STATIC int xfs_attr_get_int ( struct xfs_inode *  ip,
struct xfs_name name,
unsigned char value,
int valuelenp,
int  flags 
)

Definition at line 116 of file xfs_attr.c.

int xfs_attr_inactive ( xfs_inode_t *  dp)

Definition at line 770 of file xfs_attr.c.

STATIC int xfs_attr_leaf_addname ( xfs_da_args_t args)

Definition at line 893 of file xfs_attr.c.

STATIC int xfs_attr_leaf_get ( xfs_da_args_t args)

Definition at line 1153 of file xfs_attr.c.

STATIC int xfs_attr_leaf_list ( xfs_attr_list_context_t context)

Definition at line 1182 of file xfs_attr.c.

STATIC int xfs_attr_leaf_removename ( xfs_da_args_t args)

Definition at line 1090 of file xfs_attr.c.

int xfs_attr_list ( xfs_inode_t *  dp,
char buffer,
int  bufsize,
int  flags,
attrlist_cursor_kern_t cursor 
)

Definition at line 718 of file xfs_attr.c.

int xfs_attr_list_int ( xfs_attr_list_context_t context)

Definition at line 619 of file xfs_attr.c.

STATIC int xfs_attr_name_to_xname ( struct xfs_name xname,
const unsigned char aname 
)

Definition at line 86 of file xfs_attr.c.

STATIC int xfs_attr_node_addname ( xfs_da_args_t args)

Definition at line 1222 of file xfs_attr.c.

STATIC int xfs_attr_node_get ( xfs_da_args_t args)

Definition at line 1751 of file xfs_attr.c.

STATIC int xfs_attr_node_list ( xfs_attr_list_context_t context)

Definition at line 1798 of file xfs_attr.c.

STATIC int xfs_attr_node_removename ( xfs_da_args_t args)

Definition at line 1484 of file xfs_attr.c.

STATIC int xfs_attr_put_listent ( xfs_attr_list_context_t context,
int  flags,
unsigned char name,
int  namelen,
int  valuelen,
unsigned char value 
)

Definition at line 662 of file xfs_attr.c.

STATIC int xfs_attr_refillstate ( xfs_da_state_t state)

Definition at line 1696 of file xfs_attr.c.

int xfs_attr_remove ( xfs_inode_t *  dp,
const unsigned char name,
int  flags 
)

Definition at line 591 of file xfs_attr.c.

STATIC int xfs_attr_remove_int ( xfs_inode_t *  dp,
struct xfs_name name,
int  flags 
)

Definition at line 468 of file xfs_attr.c.

int xfs_attr_rmtval_get ( xfs_da_args_t args)

Definition at line 1952 of file xfs_attr.c.

STATIC int xfs_attr_rmtval_remove ( xfs_da_args_t args)

Definition at line 2137 of file xfs_attr.c.

STATIC int xfs_attr_rmtval_set ( xfs_da_args_t args)

Definition at line 2005 of file xfs_attr.c.

int xfs_attr_set ( xfs_inode_t *  dp,
const unsigned char name,
unsigned char value,
int  valuelen,
int  flags 
)

Definition at line 441 of file xfs_attr.c.

STATIC int xfs_attr_set_int ( struct xfs_inode *  dp,
struct xfs_name name,
unsigned char value,
int  valuelen,
int  flags 
)

Definition at line 230 of file xfs_attr.c.

STATIC int xfs_attr_shortform_addname ( xfs_da_args_t args)

Definition at line 850 of file xfs_attr.c.

STATIC int xfs_inode_hasattr ( struct xfs_inode *  ip)

Definition at line 101 of file xfs_attr.c.