| #ifndef MKSQUASHFS_H |
| #define MKSQUASHFS_H |
| /* |
| * Squashfs |
| * |
| * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
| * 2012, 2013 |
| * Phillip Lougher <phillip@squashfs.org.uk> |
| * |
| * 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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| * |
| * mksquashfs.h |
| * |
| */ |
| |
| struct dir_info { |
| char *pathname; |
| char *subpath; |
| unsigned int count; |
| unsigned int directory_count; |
| int depth; |
| unsigned int excluded; |
| char dir_is_ldir; |
| struct dir_ent *dir_ent; |
| struct dir_ent *list; |
| DIR *linuxdir; |
| }; |
| |
| struct dir_ent { |
| char *name; |
| char *source_name; |
| char *nonstandard_pathname; |
| struct inode_info *inode; |
| struct dir_info *dir; |
| struct dir_info *our_dir; |
| struct dir_ent *next; |
| }; |
| |
| struct inode_info { |
| struct stat buf; |
| struct inode_info *next; |
| squashfs_inode inode; |
| unsigned int inode_number; |
| unsigned int nlink; |
| int pseudo_id; |
| char type; |
| char read; |
| char root_entry; |
| char pseudo_file; |
| char no_fragments; |
| char always_use_fragments; |
| char noD; |
| char noF; |
| }; |
| |
| #define PSEUDO_FILE_OTHER 1 |
| #define PSEUDO_FILE_PROCESS 2 |
| |
| #define IS_PSEUDO(a) ((a)->pseudo_file) |
| #define IS_PSEUDO_PROCESS(a) ((a)->pseudo_file & PSEUDO_FILE_PROCESS) |
| #define IS_PSEUDO_OTHER(a) ((a)->pseudo_file & PSEUDO_FILE_OTHER) |
| |
| /* offset of data in compressed metadata blocks (allowing room for |
| * compressed size */ |
| #define BLOCK_OFFSET 2 |
| |
| extern struct cache *reader_buffer, *writer_buffer, *fragment_buffer; |
| extern struct queue *to_reader, *to_deflate, *to_writer, *from_writer, |
| *to_frag, *locked_fragment; |
| extern struct seq_queue *to_main; |
| #endif |