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 /mkfs/mkfs.h | |
parent | Initial commit. (diff) | |
download | exfatprogs-upstream/1.2.0.tar.xz exfatprogs-upstream/1.2.0.zip |
Adding upstream version 1.2.0.upstream/1.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | mkfs/mkfs.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mkfs/mkfs.h b/mkfs/mkfs.h new file mode 100644 index 0000000..ffd56e3 --- /dev/null +++ b/mkfs/mkfs.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2019 Namjae Jeon <linkinjeon@kernel.org> + */ + +#ifndef _MKFS_H + +#define MIN_NUM_SECTOR (2048) +#define EXFAT_MAX_CLUSTER_SIZE (32*1024*1024) + +struct exfat_mkfs_info { + unsigned int total_clu_cnt; + unsigned int used_clu_cnt; + unsigned int fat_byte_off; + unsigned int fat_byte_len; + unsigned int clu_byte_off; + unsigned int bitmap_byte_off; + unsigned int bitmap_byte_len; + unsigned int ut_byte_off; + unsigned int ut_start_clu; + unsigned int ut_clus_off; + unsigned int ut_byte_len; + unsigned int root_byte_off; + unsigned int root_byte_len; + unsigned int root_start_clu; + unsigned int volume_serial; +}; + +extern struct exfat_mkfs_info finfo; + +int exfat_create_upcase_table(struct exfat_blk_dev *bd); + +#endif /* !_MKFS_H */ |