Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xattr.c File Reference
#include <linux/ceph/ceph_debug.h>
#include "super.h"
#include "mds_client.h"
#include <linux/ceph/decode.h>
#include <linux/xattr.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  ceph_vxattr
 

Macros

#define XATTR_CEPH_PREFIX   "ceph."
 
#define XATTR_CEPH_PREFIX_LEN   (sizeof (XATTR_CEPH_PREFIX) - 1)
 
#define CEPH_XATTR_NAME(_type, _name)   XATTR_CEPH_PREFIX #_type "." #_name
 
#define XATTR_NAME_CEPH(_type, _name)
 

Functions

void __init ceph_xattr_init (void)
 
void ceph_xattr_exit (void)
 
void __ceph_destroy_xattrs (struct ceph_inode_info *ci)
 
void __ceph_build_xattrs_blob (struct ceph_inode_info *ci)
 
ssize_t ceph_getxattr (struct dentry *dentry, const char *name, void *value, size_t size)
 
ssize_t ceph_listxattr (struct dentry *dentry, char *names, size_t size)
 
int ceph_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
 
int ceph_removexattr (struct dentry *dentry, const char *name)
 

Macro Definition Documentation

#define CEPH_XATTR_NAME (   _type,
  _name 
)    XATTR_CEPH_PREFIX #_type "." #_name

Definition at line 86 of file xattr.c.

#define XATTR_CEPH_PREFIX   "ceph."

Definition at line 11 of file xattr.c.

#define XATTR_CEPH_PREFIX_LEN   (sizeof (XATTR_CEPH_PREFIX) - 1)

Definition at line 12 of file xattr.c.

#define XATTR_NAME_CEPH (   _type,
  _name 
)
Value:
{ \
.name = CEPH_XATTR_NAME(_type, _name), \
.name_size = sizeof (CEPH_XATTR_NAME(_type, _name)), \
.getxattr_cb = ceph_vxattrcb_ ## _type ## _ ## _name, \
.readonly = true, \
}

Definition at line 88 of file xattr.c.

Function Documentation

void __ceph_build_xattrs_blob ( struct ceph_inode_info ci)

Definition at line 521 of file xattr.c.

void __ceph_destroy_xattrs ( struct ceph_inode_info ci)

Definition at line 382 of file xattr.c.

ssize_t ceph_getxattr ( struct dentry dentry,
const char name,
void value,
size_t  size 
)

Definition at line 563 of file xattr.c.

ssize_t ceph_listxattr ( struct dentry dentry,
char names,
size_t  size 
)

Definition at line 628 of file xattr.c.

int ceph_removexattr ( struct dentry dentry,
const char name 
)

Definition at line 875 of file xattr.c.

int ceph_setxattr ( struct dentry dentry,
const char name,
const void value,
size_t  size,
int  flags 
)

Definition at line 759 of file xattr.c.

void ceph_xattr_exit ( void  )

Definition at line 180 of file xattr.c.

void __init ceph_xattr_init ( void  )

Definition at line 174 of file xattr.c.