3 Upper Case Table creation code.
5 Free exFAT implementation.
6 Copyright (C) 2011-2017 Andrew Nayenko
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 static off_t uct_alignment(void)
28 return get_cluster_size();
31 static off_t uct_size(void)
33 return sizeof(upcase_table);
36 static int uct_write(struct exfat_dev* dev)
38 if (exfat_write(dev, upcase_table, sizeof(upcase_table)) < 0)
40 exfat_error("failed to write upcase table of %zu bytes",
41 sizeof(upcase_table));
47 const struct fs_object uct =
49 .get_alignment = uct_alignment,