View Single Post
Old 07-29-2018, 07:01 PM   #8
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by frostschutz View Post
It's probably safe to do if the USB connection is not real but you tricked nickel into thinking there was one.

In a real USB connection, if you mount the filesytem, while the PC mounts it too, you'd end up with filesystem corruption.

So what I do instead (in my AutoShelf mod) is freeze nickel the moment the USB is unplugged, modify the database, unfreeze nickel. (by sending STOP / CONT kill signals)

This is dangerous too because there's a watchdog that likes to reboot the entire device when nickel stops responding, and the timing for the freeze also has to be just right (that part is left to luck)
The end goal is to launch kobo-rsync using kfmon. In that situation, it seems highly unlikely that a user would be in a position to have the filesystem mounted by the computer, as the user would not be able to launch the program from kfmon while connected to a PC.

Although, I'm not quite sure what happens if you plug it in while already "connected"... Maybe I should test that (if I'm brave enough!)

I assume users who have compiled it and are running via SSH/telnet are smart enough to avoid trying to mount the filesystem twice.
*****
Another bit of musing, could we use a bit of OCR to find the "connect" button location? Performance? Battery? I'll have a look into it.
sherman is offline   Reply With Quote