On the master we have a new receiveonly folder type, read the code, I see the file added or modified for the receiveonly folder, When sending the index information, we will always set LocalFlags to 0, so consider the following scenario:
- On machine A, add a send receive folder (empty directory) and share it to machine B.
- On machine B, add the directory to receive only
- Add some files to the directory of machine B.
dd if=/dev/urandom of=10m.bin count=10 bs=1M
Now on machine A, we can see that the global size is 10M and the local size is 0M. If there are more nodes like machine B, our global size will be very confusing.
I don’t understand why we want to send receiveonly file index to other nodes, and force LocalFlags to 0, which interferes with global index.