diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:57 +0000 |
commit | 107a9fe33b588acf0db45f3944683a134634a454 (patch) | |
tree | 62e7a2928b706f9f34c2d5a4e1227888cfc537c5 /fsck/fsck.h | |
parent | Initial commit. (diff) | |
download | exfatprogs-upstream.tar.xz exfatprogs-upstream.zip |
Adding upstream version 1.2.0.upstream/1.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fsck/fsck.h')
-rw-r--r-- | fsck/fsck.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/fsck/fsck.h b/fsck/fsck.h new file mode 100644 index 0000000..53003f6 --- /dev/null +++ b/fsck/fsck.h @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2020 Hyunchul Lee <hyc.lee@gmail.com> + */ +#ifndef _FSCK_H +#define _FSCK_H + +#include "list.h" + +enum fsck_ui_options { + FSCK_OPTS_REPAIR_ASK = 0x01, + FSCK_OPTS_REPAIR_YES = 0x02, + FSCK_OPTS_REPAIR_NO = 0x04, + FSCK_OPTS_REPAIR_AUTO = 0x08, + FSCK_OPTS_REPAIR_WRITE = 0x0b, + FSCK_OPTS_REPAIR_ALL = 0x0f, + FSCK_OPTS_IGNORE_BAD_FS_NAME = 0x10, + FSCK_OPTS_RESCUE_CLUS = 0x20, +}; + +struct exfat; +struct exfat_inode; + +struct exfat_fsck { + struct exfat *exfat; + struct exfat_de_iter de_iter; + struct buffer_desc *buffer_desc; /* cluster * 2 */ + enum fsck_ui_options options; + bool dirty:1; + bool dirty_fat:1; +}; + +off_t exfat_c2o(struct exfat *exfat, unsigned int clus); + +#endif |