/external/squashfs-tools/squashfs-tools/ |
D | read_fs.c | 122 struct squashfs_super_block *sBlk, union squashfs_inode_header in scan_inode_table() argument 221 file_mapping = calloc(sBlk->fragments, sizeof(struct append_file *)); in scan_inode_table() 254 0 : inode.file_size % sBlk->block_size; in scan_inode_table() 256 (inode.file_size + sBlk->block_size - 1) >> in scan_inode_table() 257 sBlk->block_log : inode.file_size >> in scan_inode_table() 258 sBlk->block_log; in scan_inode_table() 284 inode.fragment >= sBlk->fragments) { in scan_inode_table() 309 0 : inode.file_size % sBlk->block_size; in scan_inode_table() 311 (inode.file_size + sBlk->block_size - 1) >> in scan_inode_table() 312 sBlk->block_log : inode.file_size >> in scan_inode_table() [all …]
|
D | unsquash-4.c | 34 int bytes = SQUASHFS_FRAGMENT_BYTES(sBlk.s.fragments); in read_fragment_table_4() 35 int indexes = SQUASHFS_FRAGMENT_INDEXES(sBlk.s.fragments); in read_fragment_table_4() 39 "from 0x%llx\n", sBlk.s.fragments, indexes, in read_fragment_table_4() 40 sBlk.s.fragment_table_start); in read_fragment_table_4() 42 if(sBlk.s.fragments == 0) { in read_fragment_table_4() 43 *directory_table_end = sBlk.s.fragment_table_start; in read_fragment_table_4() 52 res = read_fs_bytes(fd, sBlk.s.fragment_table_start, in read_fragment_table_4() 53 SQUASHFS_FRAGMENT_INDEX_BYTES(sBlk.s.fragments), in read_fragment_table_4() 77 for(i = 0; i < sBlk.s.fragments; i++) in read_fragment_table_4() 100 long long start = sBlk.s.inode_table_start + start_block; in read_inode_4() [all …]
|
D | unsquash-1.c | 52 *directory_table_end = sBlk.s.fragment_table_start; in read_fragment_table_1() 60 long long start = sBlk.s.inode_table_start + start_block; in read_inode_1() 108 i.time = sBlk.s.mkfs_time; in read_inode_1() 142 i.blocks = (i.data + sBlk.s.block_size - 1) >> in read_inode_1() 143 sBlk.s.block_log; in read_inode_1() 244 start = sBlk.s.directory_table_start + (*i)->start; in squashfs_opendir_1() 322 TRACE("read_uids_guids: no_uids %d, no_guids %d\n", sBlk.no_uids, in read_uids_guids_1() 323 sBlk.no_guids); in read_uids_guids_1() 325 uid_table = malloc((sBlk.no_uids + sBlk.no_guids) * in read_uids_guids_1() 332 guid_table = uid_table + sBlk.no_uids; in read_uids_guids_1() [all …]
|
D | unsquashfs.c | 54 struct super_block sBlk; variable 683 if(SQUASHFS_CHECK_DATA(sBlk.s.flags)) in read_block() 1633 time_t mkfs_time = (time_t) sBlk.s.mkfs_time; in squashfs_stat() 1638 sBlk.s.s_major == 4 ? "" : swap ? "little endian " : in squashfs_stat() 1639 "big endian ", sBlk.s.s_major, sBlk.s.s_minor, source); in squashfs_stat() 1642 sBlk.s.s_major == 4 ? "" : swap ? "big endian " : in squashfs_stat() 1643 "little endian ", sBlk.s.s_major, sBlk.s.s_minor, source); in squashfs_stat() 1649 sBlk.s.bytes_used / 1024.0, sBlk.s.bytes_used / in squashfs_stat() 1652 if(sBlk.s.s_major == 4) { in squashfs_stat() 1655 if(SQUASHFS_COMP_OPTS(sBlk.s.flags)) { in squashfs_stat() [all …]
|
D | unsquash-2.c | 46 int bytes = SQUASHFS_FRAGMENT_BYTES_2(sBlk.s.fragments); in read_fragment_table_2() 47 int indexes = SQUASHFS_FRAGMENT_INDEXES_2(sBlk.s.fragments); in read_fragment_table_2() 51 "from 0x%llx\n", sBlk.s.fragments, indexes, in read_fragment_table_2() 52 sBlk.s.fragment_table_start); in read_fragment_table_2() 54 if(sBlk.s.fragments == 0) { in read_fragment_table_2() 55 *directory_table_end = sBlk.s.fragment_table_start; in read_fragment_table_2() 67 res = read_fs_bytes(fd, sBlk.s.fragment_table_start, in read_fragment_table_2() 68 SQUASHFS_FRAGMENT_INDEX_BYTES_2(sBlk.s.fragments), in read_fragment_table_2() 78 res = read_fs_bytes(fd, sBlk.s.fragment_table_start, in read_fragment_table_2() 79 SQUASHFS_FRAGMENT_INDEX_BYTES_2(sBlk.s.fragments), in read_fragment_table_2() [all …]
|
D | unsquash-3.c | 33 int bytes = SQUASHFS_FRAGMENT_BYTES_3(sBlk.s.fragments); in read_fragment_table_3() 34 int indexes = SQUASHFS_FRAGMENT_INDEXES_3(sBlk.s.fragments); in read_fragment_table_3() 38 "from 0x%llx\n", sBlk.s.fragments, indexes, in read_fragment_table_3() 39 sBlk.s.fragment_table_start); in read_fragment_table_3() 41 if(sBlk.s.fragments == 0) { in read_fragment_table_3() 42 *directory_table_end = sBlk.s.fragment_table_start; in read_fragment_table_3() 54 res = read_fs_bytes(fd, sBlk.s.fragment_table_start, in read_fragment_table_3() 55 SQUASHFS_FRAGMENT_INDEX_BYTES_3(sBlk.s.fragments), in read_fragment_table_3() 65 res = read_fs_bytes(fd, sBlk.s.fragment_table_start, in read_fragment_table_3() 66 SQUASHFS_FRAGMENT_INDEX_BYTES_3(sBlk.s.fragments), in read_fragment_table_3() [all …]
|
D | xattr.h | 80 static inline int get_xattrs(int fd, struct squashfs_super_block *sBlk) in get_xattrs() argument 82 if(sBlk->xattr_id_table_start != SQUASHFS_INVALID_BLK) { in get_xattrs() 118 static inline int read_xattrs_from_disk(int fd, struct squashfs_super_block *sBlk) in read_xattrs_from_disk() argument 120 if(sBlk->xattr_id_table_start != SQUASHFS_INVALID_BLK) { in read_xattrs_from_disk()
|
D | mksquashfs.c | 101 struct squashfs_super_block sBlk; variable 328 void write_filesystem_tables(struct squashfs_super_block *sBlk, int nopad); 414 write_filesystem_tables(&sBlk, nopad); in restorefs() 4749 void write_recovery_data(struct squashfs_super_block *sBlk) in write_recovery_data() argument 4751 int res, recoverfd, bytes = sBlk->bytes_used - sBlk->inode_table_start; in write_recovery_data() 4766 res = read_fs_bytes(fd, sBlk->inode_table_start, bytes, metadata); in write_recovery_data() 4786 if(write_bytes(recoverfd, sBlk, sizeof(struct squashfs_super_block)) == -1) in write_recovery_data() 4808 struct squashfs_super_block orig_sBlk, sBlk; in read_recovery_data() local 4838 res = read_bytes(recoverfd, &sBlk, sizeof(struct squashfs_super_block)); in read_recovery_data() 4851 if(memcmp(((char *) &sBlk) + 4, ((char *) &orig_sBlk) + 4, in read_recovery_data() [all …]
|
D | read_xattrs.c | 151 int read_xattrs_from_disk(int fd, struct squashfs_super_block *sBlk) in read_xattrs_from_disk() argument 159 if(sBlk->xattr_id_table_start == SQUASHFS_INVALID_BLK) in read_xattrs_from_disk() 166 res = read_fs_bytes(fd, sBlk->xattr_id_table_start, sizeof(id_table), in read_xattrs_from_disk() 185 res = read_fs_bytes(fd, sBlk->xattr_id_table_start + sizeof(id_table), in read_xattrs_from_disk()
|
D | unsquashfs_xattr.c | 50 sBlk.s.xattr_id_table_start == SQUASHFS_INVALID_BLK) in write_xattr()
|
D | unsquashfs.h | 230 extern struct super_block sBlk;
|
D | xattr.c | 737 int get_xattrs(int fd, struct squashfs_super_block *sBlk) in get_xattrs() argument 744 res = read_xattrs_from_disk(fd, sBlk); in get_xattrs()
|