logoalt Hacker News

actionfromafarlast Wednesday at 11:31 PM1 replyview on HN

You wouldn't be able to edit from any side, because the other side would get its tables confused.

But you could mount readonly and have it work both sides. Or disconnect the side not writing, then reconnected when write has finished.


Replies

BanAntiVaxxerslast Wednesday at 11:39 PM

You could have three parts to this "black box".

Part A emulates a USB drive to Device A.

Part B emulates a USB drive to Device B.

Part C is the eventually-consistent synchronizer. It can "see" into Part A and Part B.

If file exists on A but not B, copy the file from A to B. If file exists on B but not A, copy the file from B to A.

To each device, the files magically show up.

To resolve conflicts, it would have to do it based on timestamps.

The synchronizer could be anything. Heck, it could even be rsync. This device could be 3 Raspberry Pi's crammed into a single box.

I would happily pay $100 or so for a device that could do this.

show 1 reply