xref: /linux/fs/squashfs/xattr.h (revision 01e5b4e4e897fce8c7e6236bc933c9721c7ee237)
1*01e5b4e4SPhillip Lougher /*
2*01e5b4e4SPhillip Lougher  * Squashfs - a compressed read only filesystem for Linux
3*01e5b4e4SPhillip Lougher  *
4*01e5b4e4SPhillip Lougher  * Copyright (c) 2010
5*01e5b4e4SPhillip Lougher  * Phillip Lougher <phillip@lougher.demon.co.uk>
6*01e5b4e4SPhillip Lougher  *
7*01e5b4e4SPhillip Lougher  * This program is free software; you can redistribute it and/or
8*01e5b4e4SPhillip Lougher  * modify it under the terms of the GNU General Public License
9*01e5b4e4SPhillip Lougher  * as published by the Free Software Foundation; either version 2,
10*01e5b4e4SPhillip Lougher  * or (at your option) any later version.
11*01e5b4e4SPhillip Lougher  *
12*01e5b4e4SPhillip Lougher  * This program is distributed in the hope that it will be useful,
13*01e5b4e4SPhillip Lougher  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14*01e5b4e4SPhillip Lougher  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*01e5b4e4SPhillip Lougher  * GNU General Public License for more details.
16*01e5b4e4SPhillip Lougher  *
17*01e5b4e4SPhillip Lougher  * You should have received a copy of the GNU General Public License
18*01e5b4e4SPhillip Lougher  * along with this program; if not, write to the Free Software
19*01e5b4e4SPhillip Lougher  * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20*01e5b4e4SPhillip Lougher  *
21*01e5b4e4SPhillip Lougher  * xattr.h
22*01e5b4e4SPhillip Lougher  */
23*01e5b4e4SPhillip Lougher 
24*01e5b4e4SPhillip Lougher #ifdef CONFIG_SQUASHFS_XATTRS
25*01e5b4e4SPhillip Lougher extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,
26*01e5b4e4SPhillip Lougher 		u64 *, int *);
27*01e5b4e4SPhillip Lougher extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,
28*01e5b4e4SPhillip Lougher 		int *, long long *);
29*01e5b4e4SPhillip Lougher #else
30*01e5b4e4SPhillip Lougher static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,
31*01e5b4e4SPhillip Lougher 		u64 start, u64 *xattr_table_start, int *xattr_ids)
32*01e5b4e4SPhillip Lougher {
33*01e5b4e4SPhillip Lougher 	ERROR("Xattrs in filesystem, these will be ignored\n");
34*01e5b4e4SPhillip Lougher 	return ERR_PTR(-ENOTSUPP);
35*01e5b4e4SPhillip Lougher }
36*01e5b4e4SPhillip Lougher 
37*01e5b4e4SPhillip Lougher static inline int squashfs_xattr_lookup(struct super_block *sb,
38*01e5b4e4SPhillip Lougher 		unsigned int index, int *count, int *size, long long *xattr)
39*01e5b4e4SPhillip Lougher {
40*01e5b4e4SPhillip Lougher 	return 0;
41*01e5b4e4SPhillip Lougher }
42*01e5b4e4SPhillip Lougher #define squashfs_listxattr NULL
43*01e5b4e4SPhillip Lougher #define generic_getxattr NULL
44*01e5b4e4SPhillip Lougher #define squashfs_xattr_handlers NULL
45*01e5b4e4SPhillip Lougher #endif
46