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/common/file.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'firmware/common/file.c') diff --git a/firmware/common/file.c b/firmware/common/file.c index da85846a34..3477c10061 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -793,7 +793,6 @@ off_t filesize(int fd) } -#ifdef HAVE_HOTSWAP /* release all file handles on a given volume "by force", to avoid leaks */ int release_files(int volume) { @@ -814,4 +813,3 @@ int release_files(int volume) } return closed; /* return how many we did */ } -#endif /* #ifdef HAVE_HOTSWAP */ -- cgit v1.2.3