Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
12extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,
13 u64 *, int *);
14extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,
15 unsigned int *, unsigned long long *);
16#else
17static 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
25static 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