aboutsummaryrefslogtreecommitdiffstats
path: root/fs/vendor
diff options
context:
space:
mode:
authorhuman <human@neet.fi>2021-01-07 16:31:52 +0200
committerhuman <human@neet.fi>2021-01-11 10:25:57 +0200
commita7ab34ebbce60f2af159f9010a2e3629756af3d1 (patch)
tree265c2026e52d8faee189b9a96c18b77557d427cb /fs/vendor
parent6d65a48d4e5fbd467c68f6e98301cf136115c570 (diff)
fix truncating in defineFile()
- in the C part: enable FUSE_CAP_ATOMIC_O_TRUNC so that open() will get called with O_TRUNC in flags instead of truncate() being called separately - this also prevents truncate() from calling setData() with an empty string when a file is opened with O_TRUNC - in defineFile()->open(): if O_TRUNC is used, don't call getData() but start with an empty file as if it had just been truncated - in defineFile()->write()/truncate(): correct buffer resizing/copying
Diffstat (limited to 'fs/vendor')
0 files changed, 0 insertions, 0 deletions