summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-08-20 20:32:12 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-08-20 20:32:12 +0000
commitb3bebc73d5b29fe3ceddfae6e73762df6381db5d (patch)
tree3f702f74de8be9e534da3ffdf57be996f638e25d
parent0d49141637036af9d3e54a6dab4bf96473db3359 (diff)
downloadrockbox-b3bebc73d5b29fe3ceddfae6e73762df6381db5d.tar.gz
rockbox-b3bebc73d5b29fe3ceddfae6e73762df6381db5d.zip
properly remount the filesystem after usb disconnect with software usb
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18323 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 750bad4507..7722e5f93b 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -324,6 +324,9 @@ static void usb_thread(void)
#ifdef HAVE_USBSTACK
if(exclusive_ata_access)
{
+ int rc = disk_mount_all();
+ if (rc <= 0) /* no partition */
+ panicf("mount: %d",rc);
exclusive_ata_access = false;
#endif
/* Tell all threads that we are back in business */