1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Frank Gevaerts 2010-11-28 15:22:51 +00:00
parent 4063389bff
commit 1db3dfdd75
6 changed files with 26 additions and 10 deletions

View file

@ -36,7 +36,6 @@
static DIR_UNCACHED opendirs[MAX_OPEN_DIRS];
#ifdef HAVE_HOTSWAP
// release all dir handles on a given volume "by force", to avoid leaks
int release_dirs(int volume)
{
@ -57,7 +56,6 @@ int release_dirs(int volume)
}
return closed; /* return how many we did */
}
#endif /* #ifdef HAVE_HOTSWAP */
DIR_UNCACHED* opendir_uncached(const char* name)
{