]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix cached file data truncation
authorSage Weil <sage@newdream.net>
Thu, 11 Aug 2011 16:37:25 +0000 (09:37 -0700)
committerSage Weil <sage@newdream.net>
Thu, 11 Aug 2011 16:37:25 +0000 (09:37 -0700)
commit9e8f3482f89798be1ad273e4e2516aac8a4162b5
tree33133c5f0bc818a539c7782a902970bdd1fd85bc
parente643e4e7c72693a3548ff41f90a7ff640904cd8d
client: fix cached file data truncation

We want to truncate our cached data when the file size changes, not
when truncate_size does.  This aligns us with the kernel implementation,
and it works when overwriting a file from multiple clients.

Signed-off-by: Sage Weil <sage@newdream.net>
src/client/Client.cc