From b3bebc73d5b29fe3ceddfae6e73762df6381db5d Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 20 Aug 2008 20:32:12 +0000 Subject: 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 --- firmware/usb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/usb.c b/firmware/usb.c index 750bad4..7722e5f 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 */ -- cgit v1.1