1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (C) 2020 Hyunchul Lee <hyc.lee@gmail.com> 4 */ 5 #ifndef _REPAIR_H 6 #define _REPAIR_H 7 8 #define ER_BS_CHECKSUM 0x00000001 9 #define ER_BS_BOOT_REGION 0x00000002 10 #define ER_DE_CHECKSUM 0x00001001 11 #define ER_FILE_VALID_SIZE 0x00002001 12 #define ER_FILE_INVALID_CLUS 0x00002002 13 #define ER_FILE_FIRST_CLUS 0x00002003 14 #define ER_FILE_SMALLER_SIZE 0x00002004 15 #define ER_FILE_LARGER_SIZE 0x00002005 16 #define ER_FILE_DUPLICATED_CLUS 0x00002006 17 #define ER_FILE_ZERO_NOFAT 0x00002007 18 19 typedef unsigned int er_problem_code_t; 20 21 bool exfat_repair_ask(struct exfat *exfat, er_problem_code_t prcode, 22 const char *fmt, ...); 23 24 #endif 25