···26262727 If unsure, say N.28282929+config SQUASHFS_XATTRS3030+ bool "Squashfs XATTR support"3131+ depends on SQUASHFS3232+ default n3333+ help3434+ Saying Y here includes support for extended attributes (xattrs).3535+ Xattrs are name:value pairs associated with inodes by3636+ the kernel or by users (see the attr(5) manual page).3737+3838+ If unsure, say N.3939+2940config SQUASHFS_EMBEDDED30413142 bool "Additional option for memory-constrained systems"
···4646#include "squashfs_fs_sb.h"4747#include "squashfs_fs_i.h"4848#include "squashfs.h"4949+#include "xattr.h"49505051/*5152 * Initialise VFS inode with the base inode information common to all
+1
fs/squashfs/namei.c
···6363#include "squashfs_fs_sb.h"6464#include "squashfs_fs_i.h"6565#include "squashfs.h"6666+#include "xattr.h"66676768/*6869 * Lookup name in the directory index, returning the location of the metadata
-6
fs/squashfs/squashfs.h
···7676/* xattr.c */7777extern ssize_t squashfs_listxattr(struct dentry *, char *, size_t);78787979-/* xattr_id.c */8080-extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,8181- int *, long long *);8282-extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,8383- u64 *, int *);8484-8579/*8680 * Inodes, files, decompressor and xattr operations8781 */
···11+/*22+ * Squashfs - a compressed read only filesystem for Linux33+ *44+ * Copyright (c) 201055+ * Phillip Lougher <phillip@lougher.demon.co.uk>66+ *77+ * This program is free software; you can redistribute it and/or88+ * modify it under the terms of the GNU General Public License99+ * as published by the Free Software Foundation; either version 2,1010+ * or (at your option) any later version.1111+ *1212+ * This program is distributed in the hope that it will be useful,1313+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1414+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1515+ * GNU General Public License for more details.1616+ *1717+ * You should have received a copy of the GNU General Public License1818+ * along with this program; if not, write to the Free Software1919+ * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.2020+ *2121+ * xattr.h2222+ */2323+2424+#ifdef CONFIG_SQUASHFS_XATTRS2525+extern __le64 *squashfs_read_xattr_id_table(struct super_block *, u64,2626+ u64 *, int *);2727+extern int squashfs_xattr_lookup(struct super_block *, unsigned int, int *,2828+ int *, long long *);2929+#else3030+static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,3131+ u64 start, u64 *xattr_table_start, int *xattr_ids)3232+{3333+ ERROR("Xattrs in filesystem, these will be ignored\n");3434+ return ERR_PTR(-ENOTSUPP);3535+}3636+3737+static inline int squashfs_xattr_lookup(struct super_block *sb,3838+ unsigned int index, int *count, int *size, long long *xattr)3939+{4040+ return 0;4141+}4242+#define squashfs_listxattr NULL4343+#define generic_getxattr NULL4444+#define squashfs_xattr_handlers NULL4545+#endif