summaryrefslogtreecommitdiff
path: root/src/drivers/ao_fat.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-31 12:39:32 -0700
committerKeith Packard <keithp@keithp.com>2013-03-31 12:39:32 -0700
commit144b44e13ce3361ff59cbb555e84d542455a4e17 (patch)
treecf56246bea404fbe23f35a800ed0013260d454b9 /src/drivers/ao_fat.c
parenta70139c9a8a177df8f20f525703b13c0aec0fbc7 (diff)
altos: Unmount file system after each testing pass in ao_fat_test
Otherwise, we use stale data and 'bad things' happen. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_fat.c')
-rw-r--r--src/drivers/ao_fat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/ao_fat.c b/src/drivers/ao_fat.c
index bb0aa7a2..9cd3d34b 100644
--- a/src/drivers/ao_fat.c
+++ b/src/drivers/ao_fat.c
@@ -608,6 +608,12 @@ ao_fat_setup(void)
return ao_filesystem_status;
}
+void
+ao_fat_unmount(void)
+{
+ ao_filesystem_setup = 0;
+}
+
/*
* Basic file operations
*/