View Single Post
Old 04-25-2016, 01:53 AM   #16
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
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...
geekmaster is offline   Reply With Quote