Accept FS#11774 by Michael Hohmuth (with some own modifications to #ifdef conditions)
commitc155fdde94a4f8078c54ca899a0b532ec5a53306
authorgevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sun, 28 Nov 2010 15:22:51 +0000 (28 15:22 +0000)
committergevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sun, 28 Nov 2010 15:22:51 +0000 (28 15:22 +0000)
treed3f4ca8200a049ecdad0452ca4bb322e452b2ae6
parent3c1309ef84161a0787a9f92f6faa9ee009e9abfe
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/dir_uncached.c
firmware/common/disk.c
firmware/common/file.c
firmware/drivers/fat.c
firmware/export/disk.h
firmware/usb.c