ftpfs directory cache problem
Status: Beta
Brought to you by:
mali
Got some problem with overwriting files on an FTP server:
# echo blablablala > bla && cat bla
blablalblala
# echo bl > bla && cat bla
bl
blablala
As you can see, it did not update the filesize somehow,
which means it reads beyond the new end-of-file.
Manual ftp-ing shows no problems at all, so it wasn't the
server's error (ofcourse) ;P.
BUT... If I set dir_cache_ttl to 0 (lufs option),
everything is ok! :)
Can't the directory cache be updated when writing to a
file (or other operations) ?
Hopefully the ftpfs was just a quick port.
Someone probably already came up with the idea to
have some common code for directory cache updates
shared by all fs's using lufs, so I won't ask that.
Logged In: YES
user_id=414115
btw, it was lufs 0.9.5 running on latest Gentoo release
Logged In: YES
user_id=414115
Somehow, dir_cache_ttl=0 did not help after all and still get
the problem. It might be that sometimes I get null-bytes
beyond the end-of-file instead of the old data.
Also, I think it's weird the opposite (missing data due to
smaller filesize in cache) did not happen.