]>
Commit | Line | Data |
---|---|---|
68252eb5 | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
01e5b4e4 PL |
2 | /* |
3 | * Squashfs - a compressed read only filesystem for Linux | |
4 | * | |
5 | * Copyright (c) 2010 | |
d7f2ff67 | 6 | * Phillip Lougher <phillip@squashfs.org.uk> |
01e5b4e4 | 7 | * |
01e5b4e4 PL |
8 | * xattr.h |
9 | */ | |
10 | ||
637d5c9a | 11 | #ifdef CONFIG_SQUASHFS_XATTR |
01e5b4e4 PL |
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 *, | |
5f3b321d | 15 | unsigned int *, unsigned long long *); |
01e5b4e4 PL |
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"); | |
37986f63 | 21 | *xattr_table_start = start; |
01e5b4e4 PL |
22 | return ERR_PTR(-ENOTSUPP); |
23 | } | |
24 | ||
25 | static inline int squashfs_xattr_lookup(struct super_block *sb, | |
5f3b321d | 26 | unsigned int index, int *count, unsigned int *size, |
aa5b1894 | 27 | unsigned long long *xattr) |
01e5b4e4 PL |
28 | { |
29 | return 0; | |
30 | } | |
31 | #define squashfs_listxattr NULL | |
01e5b4e4 PL |
32 | #define squashfs_xattr_handlers NULL |
33 | #endif |