0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifdef CONFIG_SQUASHFS_XATTR
0012 extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,
0013 u64 *, int *);
0014 extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,
0015 unsigned int *, unsigned long long *);
0016 #else
0017 static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,
0018 u64 start, u64 *xattr_table_start, int *xattr_ids)
0019 {
0020 struct squashfs_xattr_id_table *id_table;
0021
0022 id_table = squashfs_read_table(sb, start, sizeof(*id_table));
0023 if (IS_ERR(id_table))
0024 return (__le64 *) id_table;
0025
0026 *xattr_table_start = le64_to_cpu(id_table->xattr_table_start);
0027 kfree(id_table);
0028
0029 ERROR("Xattrs in filesystem, these will be ignored\n");
0030 return ERR_PTR(-ENOTSUPP);
0031 }
0032
0033 static inline int squashfs_xattr_lookup(struct super_block *sb,
0034 unsigned int index, int *count, unsigned int *size,
0035 unsigned long long *xattr)
0036 {
0037 return 0;
0038 }
0039 #define squashfs_listxattr NULL
0040 #define squashfs_xattr_handlers NULL
0041 #endif