• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_DE_UNKNOWN			0x00001002
12 #define ER_DE_FILE			0x00001010
13 #define ER_DE_SECONDARY_COUNT		0x00001011
14 #define ER_DE_STREAM			0x00001020
15 #define ER_DE_NAME			0x00001030
16 #define ER_DE_NAME_HASH			0x00001031
17 #define ER_DE_NAME_LEN			0x00001032
18 #define ER_DE_DOT_NAME			0x00001033
19 #define ER_FILE_VALID_SIZE		0x00002001
20 #define ER_FILE_INVALID_CLUS		0x00002002
21 #define ER_FILE_FIRST_CLUS		0x00002003
22 #define ER_FILE_SMALLER_SIZE		0x00002004
23 #define ER_FILE_LARGER_SIZE		0x00002005
24 #define ER_FILE_DUPLICATED_CLUS		0x00002006
25 #define ER_FILE_ZERO_NOFAT		0x00002007
26 
27 typedef unsigned int er_problem_code_t;
28 struct exfat_fsck;
29 
30 int exfat_repair_ask(struct exfat_fsck *fsck, er_problem_code_t prcode,
31 		     const char *fmt, ...);
32 
33 #endif
34