Squashfs: header files
Subsystems (2)
PATCH v2 12/16 Squashfs: header files
Signed-off-by Phillip Lougher <[email protected]>
--- fs/squashfs/squashfs.h | 89 ++++++++++ fs/squashfs/squashfs_fs.h | 380 ++++++++++++++++++++++++++++++++++++++++++ fs/squashfs/squashfs_fs_i.h | 45 +++++ fs/squashfs/squashfs_fs_sb.h | 76 +++++++++ 4 files changed, 590 insertions(+), 0 deletions(-)
fs/squashfs/squashfs.h new file +89 -0
@@ -0,0 +1,89 @@ +/* +* Squashfs - a compressed read only filesystem for Linux +* +* Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008 +* Phillip Lougher <[email protected]> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2, +* or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +* +* squashfs.h +*/ + +#define TRACE(s, args...) pr_debug("SQUASHFS: "s, ## args) + +#define ERROR(s, args...) pr_err("SQUASHFS error: "s, ## args) + +#define WARNING(s, args...) pr_warning("SQUASHFS: "s, ## args) + +static inline struct squashfs_inode_info *SQUASHFS_I (struct inode *inode) +{ + return list_entry(inode, struct squashfs_inode_info, vfs_inode); +} + +/* block.c */ +extern int squashfs_read_data (struct super_block *,void *, +long long ,int ,long long *,int ); + +/* cache.c */ +extern struct squashfs_cache *squashfs_cache_init (char *,int ,int ,int ); +extern void squashfs_cache_delete (struct squashfs_cache *); +struct squashfs_cache_entry *squashfs_cache_get (struct super_block *, +struct squashfs_cache *,long long ,int ); +void squashfs_cache_put (struct squashfs_cache *,struct squashfs_cache_entry *); +extern int squashfs_read_metadata (struct super_block *,void *, +long long *,int *,int ); +extern struct squashfs_cache_entry *get_cached_fragment (struct super_block *, +long long ,int ); +extern void release_cached_fragment (struct squashfs_sb_info *, +struct squashfs_cache_entry *); + +/* export.c */ +extern __le64 *read_inode_lookup_table (struct super_block *,long long , +unsigned int ); + +/* fragment.c */ +extern int get_fragment_location (struct super_block *,unsigned int , +long long *); +extern __le64 *read_fragment_index_table (struct super_block *,long long , +unsigned int ); + +/* id.c */ +extern int squashfs_get_id (struct super_block *,unsigned int ,unsigned int *); +extern __le64 *read_id_index_table (struct super_block *,long long , +unsigned short ); + +/* inode.c */ +extern struct inode *squashfs_iget (struct super_block *,long long , +unsigned int ); +extern int squashfs_read_inode (struct inode *,long long ); + +/* +* Inodes and files operations +*/ + +/* dir.c */ +extern const struct file_operations squashfs_dir_ops; + +/* export.c */ +extern const struct export_operations squashfs_export_ops; + +/* file.c */ +extern const struct address_space_operations squashfs_aops; + +/* namei.c */ +extern const struct inode_operations squashfs_dir_inode_ops; + +/* symlink.c */ +extern const struct address_space_operations squashfs_symlink_aops;
fs/squashfs/squashfs_fs.h new file +380 -0
380 lines not on this page · raw message
fs/squashfs/squashfs_fs_i.h new file +45 -0
45 lines not on this page · raw message
fs/squashfs/squashfs_fs_sb.h new file +76 -0
76 lines not on this page · raw message
Signature · 1 line
1.5.2.5