Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | gfs2_ea_request |
struct | gfs2_ea_location |
Macros | |
#define | GFS2_EA_REC_LEN(ea) be32_to_cpu((ea)->ea_rec_len) |
#define | GFS2_EA_DATA_LEN(ea) be32_to_cpu((ea)->ea_data_len) |
#define | GFS2_EA_SIZE(ea) |
#define | GFS2_EA_IS_STUFFED(ea) (!(ea)->ea_num_ptrs) |
#define | GFS2_EA_IS_LAST(ea) ((ea)->ea_flags & GFS2_EAFLAG_LAST) |
#define | GFS2_EAREQ_SIZE_STUFFED(er) ALIGN(sizeof(struct gfs2_ea_header) + (er)->er_name_len + (er)->er_data_len, 8) |
#define | GFS2_EA2NAME(ea) ((char *)((struct gfs2_ea_header *)(ea) + 1)) |
#define | GFS2_EA2DATA(ea) (GFS2_EA2NAME(ea) + (ea)->ea_name_len) |
#define | GFS2_EA2DATAPTRS(ea) ((__be64 *)(GFS2_EA2NAME(ea) + ALIGN((ea)->ea_name_len, 8))) |
#define | GFS2_EA2NEXT(ea) ((struct gfs2_ea_header *)((char *)(ea) + GFS2_EA_REC_LEN(ea))) |
#define | GFS2_EA_BH2FIRST(bh) ((struct gfs2_ea_header *)((bh)->b_data + sizeof(struct gfs2_meta_header))) |
Functions | |
int | __gfs2_xattr_set (struct inode *inode, const char *name, const void *value, size_t size, int flags, int type) |
ssize_t | gfs2_listxattr (struct dentry *dentry, char *buffer, size_t size) |
int | gfs2_ea_dealloc (struct gfs2_inode *ip) |
int | gfs2_xattr_acl_get (struct gfs2_inode *ip, const char *name, char **data) |
int | gfs2_xattr_acl_chmod (struct gfs2_inode *ip, struct iattr *attr, char *data) |
#define GFS2_EA2DATA | ( | ea | ) | (GFS2_EA2NAME(ea) + (ea)->ea_name_len) |
#define GFS2_EA2NAME | ( | ea | ) | ((char *)((struct gfs2_ea_header *)(ea) + 1)) |
#define GFS2_EA2NEXT | ( | ea | ) | ((struct gfs2_ea_header *)((char *)(ea) + GFS2_EA_REC_LEN(ea))) |
#define GFS2_EA_BH2FIRST | ( | bh | ) | ((struct gfs2_ea_header *)((bh)->b_data + sizeof(struct gfs2_meta_header))) |
#define GFS2_EA_DATA_LEN | ( | ea | ) | be32_to_cpu((ea)->ea_data_len) |
#define GFS2_EA_IS_LAST | ( | ea | ) | ((ea)->ea_flags & GFS2_EAFLAG_LAST) |
#define GFS2_EA_REC_LEN | ( | ea | ) | be32_to_cpu((ea)->ea_rec_len) |
#define GFS2_EA_SIZE | ( | ea | ) |
#define GFS2_EAREQ_SIZE_STUFFED | ( | er | ) | ALIGN(sizeof(struct gfs2_ea_header) + (er)->er_name_len + (er)->er_data_len, 8) |
int gfs2_ea_dealloc | ( | struct gfs2_inode * | ip | ) |