cheshirekow / openbookfs

6.824 file synchronizer project
2 stars 3 forks source link

Design GUI/backend comm protocol #7

Open cheshirekow opened 11 years ago

cheshirekow commented 11 years ago

I'll need to determine how to manage multiple mount points. I suspect this is as easy as running each fuse_main in a separate thread, and having the main thread listen for gui communication to manage creation and destruction of fuse threads when the gui notifies the backend of a configuration update. Should we use protocol buffers for these messages? How easy will it be to use protocol buffers from qt?

cheshirekow commented 11 years ago

Using extended attributes seems like an easier way to discover context from the gui (i.e. which mount point is being refered to). Should we send all messages this way? We can serialize a protocol buffer message into a string, and then send it as the buffer for "setxattr". Seems hacky though.