1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#ifdef CONFIG_SQUASHFS_XATTR
25extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,
26 u64 *, int *);
27extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,
28 unsigned int *, unsigned long long *);
29#else
30static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,
31 u64 start, u64 *xattr_table_start, int *xattr_ids)
32{
33 ERROR("Xattrs in filesystem, these will be ignored\n");
34 *xattr_table_start = start;
35 return ERR_PTR(-ENOTSUPP);
36}
37
38static inline int squashfs_xattr_lookup(struct super_block *sb,
39 unsigned int index, int *count, unsigned int *size,
40 unsigned long long *xattr)
41{
42 return 0;
43}
44#define squashfs_listxattr NULL
45#define squashfs_xattr_handlers NULL
46#endif
47