12#ifndef _JFFS2_FS_XATTR_H_
13#define _JFFS2_FS_XATTR_H_
15#include <linux/xattr.h>
16#include <linux/list.h>
18#define JFFS2_XFLAGS_HOT (0x01)
19#define JFFS2_XFLAGS_BIND (0x02)
20#define JFFS2_XFLAGS_DEAD (0x40)
21#define JFFS2_XFLAGS_INVALID (0x80)
65#define XREF_DELETE_MARKER (0x00000001)
68 return ((ref->xseqno & XREF_DELETE_MARKER) != 0);
71#ifdef CONFIG_JFFS2_FS_XATTR
73extern void jffs2_init_xattr_subsystem(
struct jffs2_sb_info *c);
74extern void jffs2_build_xattr_subsystem(
struct jffs2_sb_info *c);
75extern void jffs2_clear_xattr_subsystem(
struct jffs2_sb_info *c);
78 uint32_t xid, uint32_t version);
92extern int do_jffs2_getxattr(
struct inode *inode,
int xprefix,
const char *xname,
93 char *buffer,
size_t size);
94extern int do_jffs2_setxattr(
struct inode *inode,
int xprefix,
const char *xname,
95 const char *buffer,
size_t size,
int flags);
97extern const struct xattr_handler *jffs2_xattr_handlers[];
98extern const struct xattr_handler jffs2_user_xattr_handler;
99extern const struct xattr_handler jffs2_trusted_xattr_handler;
101extern ssize_t jffs2_listxattr(
struct dentry *,
char *,
size_t);
105#define jffs2_init_xattr_subsystem(c)
106#define jffs2_build_xattr_subsystem(c)
107#define jffs2_clear_xattr_subsystem(c)
109#define jffs2_xattr_do_crccheck_inode(c, ic)
110#define jffs2_xattr_delete_inode(c, ic)
111#define jffs2_xattr_free_inode(c, ic)
112#define jffs2_verify_xattr(c) (1)
114#define jffs2_xattr_handlers NULL
115#define jffs2_listxattr NULL
119#ifdef CONFIG_JFFS2_FS_SECURITY
120extern int jffs2_init_security(
struct inode *inode,
struct inode *dir,
122extern const struct xattr_handler jffs2_security_xattr_handler;
124#define jffs2_init_security(inode,dir,qstr) (0)
Definition: nodelist.h:158
Definition: nodelist.h:83
Definition: jffs2_fs_sb.h:51