Home
last modified time | relevance | path

Searched refs:should_be (Results 1 – 4 of 4) sorted by relevance

/external/e2fsprogs/util/
Dcopy_sparse.c95 off64_t offset = 0, should_be; in copy_sparse_file() local
152 should_be = ((off64_t) lb) * bs; in copy_sparse_file()
153 if (offset != should_be) { in copy_sparse_file()
155 printf("Seeking to %lld\n", should_be); in copy_sparse_file()
156 if (lseek64(fd, should_be, SEEK_SET) == (off_t) -1) { in copy_sparse_file()
160 if (lseek64(ofd, should_be, SEEK_SET) == (off_t) -1) { in copy_sparse_file()
164 offset = should_be; in copy_sparse_file()
/external/e2fsprogs/e2fsck/
Dsuper.c468 blk_t should_be; in check_super_block() local
545 should_be = sb->s_frags_per_group >> in check_super_block()
547 if (sb->s_blocks_per_group != should_be) { in check_super_block()
549 pctx.blk2 = should_be; in check_super_block()
555 should_be = (sb->s_log_block_size == 0) ? 1 : 0; in check_super_block()
556 if (sb->s_first_data_block != should_be) { in check_super_block()
558 pctx.blk2 = should_be; in check_super_block()
564 should_be = sb->s_inodes_per_group * fs->group_desc_count; in check_super_block()
565 if (sb->s_inodes_count != should_be) { in check_super_block()
567 pctx.ino2 = should_be; in check_super_block()
[all …]
Dpass2.c485 int should_be = EXT2_FT_UNKNOWN; in check_filetype() local
498 should_be = EXT2_FT_DIR; in check_filetype()
501 should_be = EXT2_FT_REG_FILE; in check_filetype()
505 should_be = 0; in check_filetype()
509 should_be = ext2_file_type(inode.i_mode); in check_filetype()
511 if (filetype == should_be) in check_filetype()
513 pctx->num = should_be; in check_filetype()
519 dirent->name_len = (dirent->name_len & 0xFF) | should_be << 8; in check_filetype()
Dpass1.c1217 __u32 should_be; in adjust_extattr_refcount() local
1234 should_be = header->h_refcount + adjust_sign * count; in adjust_extattr_refcount()
1235 pctx.num = should_be; in adjust_extattr_refcount()
1237 header->h_refcount = should_be; in adjust_extattr_refcount()