struct fs_info info;
struct fs_aux_info aux_info;
struct sparse_file *ext4_sparse_file;
+struct block_allocation *base_fs_allocations = NULL;
jmp_buf setjmp_env;
/* write out the backup superblocks */
for (i = 1; i < aux_info.groups; i++) {
if (ext4_bg_has_super_block(i)) {
- offset = info.block_size * (aux_info.first_data_block
+ offset = (unsigned long long)info.block_size * (aux_info.first_data_block
+ i * info.blocks_per_group);
write_sb(fd, offset, aux_info.backup_sb[i]);
}
sb->s_mtime = 0;
sb->s_wtime = 0;
sb->s_mnt_count = 0;
- sb->s_max_mnt_count = 0xFFFF;
+ sb->s_max_mnt_count = 10;
sb->s_magic = EXT4_SUPER_MAGIC;
sb->s_state = EXT4_VALID_FS;
sb->s_errors = EXT4_ERRORS_RO;