jtgans / tsumufs

An NFS caching layer for Linux
GNU General Public License v2.0
0 stars 0 forks source link

bug in propogateChange #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by megab...@gmail.com on 26 May 2009 at 4:49

Attachments:

GoogleCodeExporter commented 9 years ago
Accepted and integrated into HEAD.

Original comment by june.t...@gmail.com on 4 Jun 2009 at 5:14