Home
last modified time | relevance | path

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

/third_party/exfatprogs/fsck/
Dfsck.c498 struct pbr *boot_sect; in exfat_boot_region_check() local
503 boot_sect = malloc(sizeof(*boot_sect)); in exfat_boot_region_check()
504 if (boot_sect == NULL) in exfat_boot_region_check()
507 if (exfat_read(blkdev->dev_fd, boot_sect, in exfat_boot_region_check()
508 sizeof(*boot_sect), 0) != (ssize_t)sizeof(*boot_sect)) { in exfat_boot_region_check()
510 free(boot_sect); in exfat_boot_region_check()
514 if (memcmp(boot_sect->bpb.oem_name, "EXFAT ", 8) != 0 && in exfat_boot_region_check()
517 free(boot_sect); in exfat_boot_region_check()
521 sect_size = 1 << boot_sect->bsx.sect_size_bits; in exfat_boot_region_check()
522 free(boot_sect); in exfat_boot_region_check()