Otherwise, we use stale data and 'bad things' happen.
Signed-off-by: Keith Packard <keithp@keithp.com>
return ao_filesystem_status;
}
return ao_filesystem_status;
}
+void
+ao_fat_unmount(void)
+{
+ ao_filesystem_setup = 0;
+}
+
/*
* Basic file operations
*/
/*
* Basic file operations
*/
+void
+ao_fat_unmount(void);
+
int8_t
ao_fat_full(void);
int8_t
ao_fat_full(void);
for (e = 0; e < number_cluster; e++) {
cluster_t v = ao_fat_entry_raw_read(e, 0);
for (f = 1; f < number_fat; f++) {
for (e = 0; e < number_cluster; e++) {
cluster_t v = ao_fat_entry_raw_read(e, 0);
for (f = 1; f < number_fat; f++) {
- if (ao_fat_entry_raw_read(e, f) != v)
- fatal ("fats differ at %d\n", e);
+ cluster_t o = ao_fat_entry_raw_read(e, f);
+ if (o != v)
+ fatal ("fats differ at %08x (0 %08x %d %08x)\n", e, v, f, o);
#else
long_test_fs();
#endif
#else
long_test_fs();
#endif