Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
xattr.c File Reference
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/buffer_head.h>
#include <linux/xattr.h>
#include <linux/gfs2_ondisk.h>
#include <asm/uaccess.h>
#include "gfs2.h"
#include "incore.h"
#include "acl.h"
#include "xattr.h"
#include "glock.h"
#include "inode.h"
#include "meta_io.h"
#include "quota.h"
#include "rgrp.h"
#include "trans.h"
#include "util.h"

Go to the source code of this file.

Data Structures

struct  ea_find
 
struct  ea_list
 
struct  ea_set
 

Typedefs

typedef int(* ea_call_t )(struct gfs2_inode *ip, struct buffer_head *bh, struct gfs2_ea_header *ea, struct gfs2_ea_header *prev, void *private)
 

Functions

ssize_t gfs2_listxattr (struct dentry *dentry, char *buffer, size_t size)
 
int gfs2_xattr_acl_get (struct gfs2_inode *ip, const char *name, char **ppdata)
 

: The name of the extended attribute

__gfs2_xattr_set - Set (or remove) a GFS2 extended attribute : The inode

: The value of the extended attribute (NULL for remove) : The size of the argument : Create or Replace : The type of the extended attribute

See gfs2_xattr_remove() for details of the removal of xattrs.

Returns: 0 or errno on failure

typedef int(* ea_skeleton_call_t )(struct gfs2_inode *ip, struct gfs2_ea_request *er, void *private)
 
struct xattr_handlergfs2_xattr_handlers []
 
int __gfs2_xattr_set (struct inode *inode, const char *name, const void *value, size_t size, int flags, int type)
 
int gfs2_xattr_acl_chmod (struct gfs2_inode *ip, struct iattr *attr, char *data)
 
int gfs2_ea_dealloc (struct gfs2_inode *ip)
 

Typedef Documentation

typedef int(* ea_call_t)(struct gfs2_inode *ip, struct buffer_head *bh, struct gfs2_ea_header *ea, struct gfs2_ea_header *prev, void *private)

Definition at line 74 of file xattr.c.

typedef int(* ea_skeleton_call_t)(struct gfs2_inode *ip, struct gfs2_ea_request *er, void *private)

Definition at line 719 of file xattr.c.

Function Documentation

int __gfs2_xattr_set ( struct inode inode,
const char name,
const void value,
size_t  size,
int  flags,
int  type 
)

Definition at line 1173 of file xattr.c.

int gfs2_ea_dealloc ( struct gfs2_inode ip)

gfs2_ea_dealloc - deallocate the extended attribute fork : the inode

Returns: errno

Definition at line 1456 of file xattr.c.

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

gfs2_listxattr - List gfs2 extended attributes : The dentry whose inode we are interested in : The buffer to write the results : The size of the buffer

Returns: actual size of data on success, -errno on error

Definition at line 420 of file xattr.c.

int gfs2_xattr_acl_chmod ( struct gfs2_inode ip,
struct iattr attr,
char data 
)

Definition at line 1254 of file xattr.c.

int gfs2_xattr_acl_get ( struct gfs2_inode ip,
const char name,
char **  ppdata 
)

Definition at line 544 of file xattr.c.

Variable Documentation

struct xattr_handler* gfs2_xattr_handlers[]
Initial value:
= {
&gfs2_xattr_user_handler,
&gfs2_xattr_security_handler,
}

Definition at line 1499 of file xattr.c.