xref: /openbmc/linux/fs/squashfs/xattr.h (revision 6c33a6f4)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Squashfs - a compressed read only filesystem for Linux
4  *
5  * Copyright (c) 2010
6  * Phillip Lougher <phillip@squashfs.org.uk>
7  *
8  * xattr.h
9  */
10 
11 #ifdef CONFIG_SQUASHFS_XATTR
12 extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,
13 		u64 *, int *);
14 extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,
15 		unsigned int *, unsigned long long *);
16 #else
17 static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,
18 		u64 start, u64 *xattr_table_start, int *xattr_ids)
19 {
20 	ERROR("Xattrs in filesystem, these will be ignored\n");
21 	*xattr_table_start = start;
22 	return ERR_PTR(-ENOTSUPP);
23 }
24 
25 static inline int squashfs_xattr_lookup(struct super_block *sb,
26 		unsigned int index, int *count, unsigned int *size,
27 		unsigned long long *xattr)
28 {
29 	return 0;
30 }
31 #define squashfs_listxattr NULL
32 #define squashfs_xattr_handlers NULL
33 #endif
34