• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/squashfs-4.2/

Lines Matching defs:sBlk

395 extern struct compressor  *read_super(int fd, struct squashfs_super_block *sBlk,
398 struct squashfs_super_block *sBlk, char **cinode_table, char **data_cache,
4405 void write_recovery_data(struct squashfs_super_block *sBlk)
4407 int res, recoverfd, bytes = sBlk->bytes_used - sBlk->inode_table_start;
4423 res = read_fs_bytes(fd, sBlk->inode_table_start, bytes, metadata);
4438 if(write_bytes(recoverfd, sBlk, sizeof(struct squashfs_super_block)) == -1)
4460 struct squashfs_super_block orig_sBlk, sBlk;
4490 res = read_bytes(recoverfd, &sBlk, sizeof(struct squashfs_super_block));
4501 if(memcmp(((char *) &sBlk) + 4, ((char *) &orig_sBlk) + 4,
4506 bytes = sBlk.bytes_used - sBlk.inode_table_start;
4520 write_destination(fd, 0, sizeof(struct squashfs_super_block), &sBlk);
4522 write_destination(fd, sBlk.inode_table_start, bytes, metadata);
4556 struct squashfs_super_block sBlk;
5065 comp = read_super(fd, &sBlk, argv[source + 1]);
5074 block_log = slog(block_size = sBlk.block_size);
5075 noI = SQUASHFS_UNCOMPRESSED_INODES(sBlk.flags);
5076 noD = SQUASHFS_UNCOMPRESSED_DATA(sBlk.flags);
5077 noF = SQUASHFS_UNCOMPRESSED_FRAGMENTS(sBlk.flags);
5078 noX = SQUASHFS_UNCOMPRESSED_XATTRS(sBlk.flags);
5079 no_fragments = SQUASHFS_NO_FRAGMENTS(sBlk.flags);
5080 always_use_fragments = SQUASHFS_ALWAYS_FRAGMENTS(sBlk.flags);
5081 duplicate_checking = SQUASHFS_DUPLICATES(sBlk.flags);
5082 exportable = SQUASHFS_EXPORTABLE(sBlk.flags);
5083 no_xattrs = SQUASHFS_NO_XATTRS(sBlk.flags);
5084 comp_opts = SQUASHFS_COMP_OPTS(sBlk.flags);
5126 SQUASHFS_INODE_BLK(sBlk.root_inode),
5128 SQUASHFS_INODE_OFFSET(sBlk.root_inode);
5130 if((bytes = read_filesystem(root_name, fd, &sBlk, &inode_table,
5147 if((fragments = sBlk.fragments)) {
5172 sinode_count = sBlk.inodes;
5197 write_recovery_data(&sBlk);
5224 dir_inode_no = sBlk.inodes + 2;
5230 add_old_root_entry(root_name, sBlk.root_inode,
5247 dir_inode_no = sBlk.inodes + 1;
5285 sBlk.root_inode = inode;
5286 sBlk.inodes = inode_count;
5287 sBlk.s_magic = SQUASHFS_MAGIC;
5288 sBlk.s_major = SQUASHFS_MAJOR;
5289 sBlk.s_minor = SQUASHFS_MINOR;
5290 sBlk.block_size = block_size;
5291 sBlk.block_log = block_log;
5292 sBlk.flags = SQUASHFS_MKFLAGS(noI, noD, noF, noX, no_fragments,
5295 sBlk.mkfs_time = time(NULL);
5304 sBlk.fragments = fragments;
5318 sBlk.no_ids = id_count;
5319 sBlk.inode_table_start = write_inodes();
5320 sBlk.directory_table_start = write_directories();
5321 sBlk.fragment_table_start = write_fragment_table();
5322 sBlk.lookup_table_start = exportable ? write_inode_lookup_table() :
5324 sBlk.id_table_start = write_id_table();
5325 sBlk.xattr_id_table_start = write_xattrs();
5327 TRACE("sBlk->inode_table_start 0x%llx\n", sBlk.inode_table_start);
5328 TRACE("sBlk->directory_table_start 0x%llx\n",
5329 sBlk.directory_table_start);
5330 TRACE("sBlk->fragment_table_start 0x%llx\n", sBlk.fragment_table_start);
5332 TRACE("sBlk->lookup_table_start 0x%llx\n",
5333 sBlk.lookup_table_start);
5335 sBlk.bytes_used = bytes;
5337 sBlk.compression = comp->id;
5339 SQUASHFS_INSWAP_SUPER_BLOCK(&sBlk);
5340 write_destination(fd, SQUASHFS_START, sizeof(sBlk), &sBlk);