Skip to content
Snippets Groups Projects
Commit ecd4eb4d authored by Andreas Joachim Peters's avatar Andreas Joachim Peters
Browse files

FUSEX: fix 'fake' file truncation when a file is reopened and written in the...

FUSEX: fix 'fake' file truncation when a file is reopened and written in the 'middle' - fixes EOS-2277
parent 8aafe111
No related branches found
No related tags found
No related merge requests found
......@@ -400,6 +400,10 @@ data::datax::attach(fuse_req_t freq, std::string& cookie, int flags)
isRW, mMd->size(),
isRW ? mRemoteUrlRW.c_str() : mRemoteUrlRO.c_str());
// store the currently known size here
mSize = mMd->size();
if (flags & O_SYNC) {
mFile->disable_caches();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment