Home
last modified time | relevance | path

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

/external/f2fs-tools/fsck/
Dmount.c207 int sanity_check_raw_super(struct f2fs_super_block *raw_super) in sanity_check_raw_super() argument
211 if (F2FS_SUPER_MAGIC != le32_to_cpu(raw_super->magic)) { in sanity_check_raw_super()
219 blocksize = 1 << le32_to_cpu(raw_super->log_blocksize); in sanity_check_raw_super()
224 if (le32_to_cpu(raw_super->log_sectorsize) > F2FS_MAX_LOG_SECTOR_SIZE || in sanity_check_raw_super()
225 le32_to_cpu(raw_super->log_sectorsize) < in sanity_check_raw_super()
230 if (le32_to_cpu(raw_super->log_sectors_per_block) + in sanity_check_raw_super()
231 le32_to_cpu(raw_super->log_sectorsize) != in sanity_check_raw_super()
243 sbi->raw_super = malloc(sizeof(struct f2fs_super_block)); in validate_super_block()
250 if (dev_read(sbi->raw_super, offset, sizeof(struct f2fs_super_block))) in validate_super_block()
253 if (!sanity_check_raw_super(sbi->raw_super)) { in validate_super_block()
[all …]
Df2fs.h129 struct f2fs_super_block *raw_super; member
167 return (struct f2fs_super_block *)(sbi->raw_super); in F2FS_RAW_SUPER()
Dmain.c223 free(sbi->raw_super); in main()
Dfsck.c978 struct f2fs_super_block *raw_sb = sbi->raw_super; in fix_checkpoint()