hippy wrote: ↑
Thu Oct 18, 2018 7:37 pm
For simultaneous access from both PC's you can use two Pi Zeroes
No you can't. The mass storage gadget will corrupt your data if both device(Pi) and host (PC) have write access.
Neither side is aware of what the other is doing. Read only on one side coupled with read/write on the other can also be problematic.
If both sides read the sames file at the same time you'll be fine, but if one, or worse, both write to it (or make any
changes that affect the contents of the disk) the reading side won't get the data it's expecting. If both sides try to write all bets are off.
There is a hack but it's dangerous. Essentially you force a periodic unmount and mount of the storage on both the Pi and the host PC. The problem is that you have no way to programmatically determine when it's safe to do this. There are ways to do this by hand when required but get it wrong and you'll still corrupt your files.