Lines Matching refs:sBlk

92 struct squashfs_super_block sBlk;  variable
319 void write_filesystem_tables(struct squashfs_super_block *sBlk, int nopad);
405 write_filesystem_tables(&sBlk, nopad); in restorefs()
4669 void write_recovery_data(struct squashfs_super_block *sBlk) in write_recovery_data() argument
4671 int res, recoverfd, bytes = sBlk->bytes_used - sBlk->inode_table_start; in write_recovery_data()
4686 res = read_fs_bytes(fd, sBlk->inode_table_start, bytes, metadata); in write_recovery_data()
4706 if(write_bytes(recoverfd, sBlk, sizeof(struct squashfs_super_block)) == -1) in write_recovery_data()
4728 struct squashfs_super_block orig_sBlk, sBlk; in read_recovery_data() local
4758 res = read_bytes(recoverfd, &sBlk, sizeof(struct squashfs_super_block)); in read_recovery_data()
4771 if(memcmp(((char *) &sBlk) + 4, ((char *) &orig_sBlk) + 4, in read_recovery_data()
4776 bytes = sBlk.bytes_used - sBlk.inode_table_start; in read_recovery_data()
4789 write_destination(fd, 0, sizeof(struct squashfs_super_block), &sBlk); in read_recovery_data()
4791 write_destination(fd, sBlk.inode_table_start, bytes, metadata); in read_recovery_data()
4803 void write_filesystem_tables(struct squashfs_super_block *sBlk, int nopad) in write_filesystem_tables() argument
4807 sBlk->fragments = fragments; in write_filesystem_tables()
4808 sBlk->no_ids = id_count; in write_filesystem_tables()
4809 sBlk->inode_table_start = write_inodes(); in write_filesystem_tables()
4810 sBlk->directory_table_start = write_directories(); in write_filesystem_tables()
4811 sBlk->fragment_table_start = write_fragment_table(); in write_filesystem_tables()
4812 sBlk->lookup_table_start = exportable ? write_inode_lookup_table() : in write_filesystem_tables()
4814 sBlk->id_table_start = write_id_table(); in write_filesystem_tables()
4815 sBlk->xattr_id_table_start = write_xattrs(); in write_filesystem_tables()
4817 TRACE("sBlk->inode_table_start 0x%llx\n", sBlk->inode_table_start); in write_filesystem_tables()
4819 sBlk->directory_table_start); in write_filesystem_tables()
4820 TRACE("sBlk->fragment_table_start 0x%llx\n", sBlk->fragment_table_start); in write_filesystem_tables()
4823 sBlk->lookup_table_start); in write_filesystem_tables()
4825 sBlk->bytes_used = bytes; in write_filesystem_tables()
4827 sBlk->compression = comp->id; in write_filesystem_tables()
4829 SQUASHFS_INSWAP_SUPER_BLOCK(sBlk); in write_filesystem_tables()
4830 write_destination(fd, SQUASHFS_START, sizeof(*sBlk), sBlk); in write_filesystem_tables()
5883 comp = read_super(fd, &sBlk, argv[source + 1]); in main()
5892 block_log = slog(block_size = sBlk.block_size); in main()
5893 noI = SQUASHFS_UNCOMPRESSED_INODES(sBlk.flags); in main()
5894 noD = SQUASHFS_UNCOMPRESSED_DATA(sBlk.flags); in main()
5895 noF = SQUASHFS_UNCOMPRESSED_FRAGMENTS(sBlk.flags); in main()
5896 noX = SQUASHFS_UNCOMPRESSED_XATTRS(sBlk.flags); in main()
5897 no_fragments = SQUASHFS_NO_FRAGMENTS(sBlk.flags); in main()
5898 always_use_fragments = SQUASHFS_ALWAYS_FRAGMENTS(sBlk.flags); in main()
5899 duplicate_checking = SQUASHFS_DUPLICATES(sBlk.flags); in main()
5900 exportable = SQUASHFS_EXPORTABLE(sBlk.flags); in main()
5901 no_xattrs = SQUASHFS_NO_XATTRS(sBlk.flags); in main()
5902 comp_opts = SQUASHFS_COMP_OPTS(sBlk.flags); in main()
5945 SQUASHFS_INODE_BLK(sBlk.root_inode), in main()
5947 SQUASHFS_INODE_OFFSET(sBlk.root_inode); in main()
5949 if((bytes = read_filesystem(root_name, fd, &sBlk, &inode_table, in main()
5966 if((append_fragments = fragments = sBlk.fragments)) { in main()
5991 sinode_count = sBlk.inodes; in main()
6016 write_recovery_data(&sBlk); in main()
6036 inode_no = sBlk.inodes + 2; in main()
6042 add_old_root_entry(root_name, sBlk.root_inode, in main()
6059 inode_no = sBlk.inodes + 1; in main()
6083 sBlk.root_inode = inode; in main()
6084 sBlk.inodes = inode_count; in main()
6085 sBlk.s_magic = SQUASHFS_MAGIC; in main()
6086 sBlk.s_major = SQUASHFS_MAJOR; in main()
6087 sBlk.s_minor = SQUASHFS_MINOR; in main()
6088 sBlk.block_size = block_size; in main()
6089 sBlk.block_log = block_log; in main()
6090 sBlk.flags = SQUASHFS_MKFLAGS(noI, noD, noF, noX, no_fragments, in main()
6093 sBlk.mkfs_time = time(NULL); in main()
6114 write_filesystem_tables(&sBlk, nopad); in main()