exFAT file system implementation library.
Free exFAT implementation.
- Copyright (C) 2010-2015 Andrew Nayenko
+ Copyright (C) 2010-2017 Andrew Nayenko
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
return -ENOMEM;
}
memset(ef->root, 0, sizeof(struct exfat_node));
- ef->root->flags = EXFAT_ATTRIB_DIR;
+ ef->root->attrib = EXFAT_ATTRIB_DIR;
ef->root->start_cluster = le32_to_cpu(ef->sb->rootdir_cluster);
ef->root->fptr_cluster = ef->root->start_cluster;
ef->root->name[0] = cpu_to_le16('\0');
void exfat_unmount(struct exfat* ef)
{
- exfat_flush(ef); /* ignore return code */
+ exfat_flush_nodes(ef); /* ignore return code */
+ exfat_flush(ef); /* ignore return code */
exfat_put_node(ef, ef->root);
exfat_reset_cache(ef);
free(ef->root);
ef->sb = NULL;
free(ef->upcase);
ef->upcase = NULL;
- ef->upcase_chars = 0;
}