New issue 2 by megabast: bug in propogateChange
http://code.google.com/p/tsumufs/issues/detail?id=2
What steps will reproduce the problem?
1. when we append a file on tsumufs : old data lentgh is less than new data
lentgh. If difference between two lengths is equal to "X"
2. In that case, the write function in fusefile appends "X" times the NULL
character at the end of old data
3. during propogateChange, tsumufs compares old data and data on NFS. But
on NFS, NULLS characters aren't present. So, Tsumufs thinks that region has
changed
What is the expected output?
Region has changed -- entire changeset conflicted.
SyncThread(_propogateChange):Data read was ''
SyncThread(_propogateChange):Wanted '\x00\x00\x00\x00'
What do you see instead?
Before comparing both versions, whe should append NULL characters on NFS
version. Check out the attached patch
Attachments:
nulls-at-end.patch 739 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings