I see that the /mnt/us and /mnt/mmc drives get unmounted before posting volumes to g_file_storage gadget, and remounted on USB removal. I suppose that means that the g_file_storage gadget shares the raw (stl) drive partition, and sharing (rw) while mounted (rw) is a recipe for disaster (i.e. data corruption). One side or the other would have to be (ro) to be safe, and there could still by sync issues to deal with. A terminal using this may need /mnt/us for reads and /mnt/mmc for writes, IF we are careful never to write to the side writable by the kindle (yeah, right, like you can keep WINDOWS from writing to a drive, eh?). It is tempting to try loop-mounting image files that windows cannot write to "accidentally". This will take great care to get right...
|