From 1db3dfdd759476ae4930958ec775fd2009674091 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 28 Nov 2010 15:22:51 +0000 Subject: Accept FS#11774 by Michael Hohmuth (with some own modifications to #ifdef conditions) Unmount all filesystems before connecting USB. This ensures that all filehandles are closed, which avoids possible filesystem corruption git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28693 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index cff11d20cc..a99341d58f 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -479,7 +479,6 @@ int fat_mount(IF_MV2(int volume,) IF_MD2(int drive,) long startsector) return 0; } -#ifdef HAVE_HOTSWAP int fat_unmount(int volume, bool flush) { int rc; @@ -518,7 +517,6 @@ int fat_unmount(int volume, bool flush) #endif return rc; } -#endif /* #ifdef HAVE_HOTSWAP */ void fat_recalc_free(IF_MV_NONVOID(int volume)) { -- cgit v1.2.3