| Summary: | Dolphin could occasionally call "sync" to avoid data corruption | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Filip Gawin <shfil> |
| Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | dolphin-bugs-null, felixernst, kdelibs-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.101.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Filip Gawin
2022-12-20 23:44:45 UTC
This should be done in KIO so I'll move this there. syncfs or fsync is what we need to use here IMO. I think the solution with the least disadvantages is calling "syncfs()" once on any removable data storage once a copy job is fully completed, and only then reporting the copy as finished. If that isn't enough, we might need to fsync every file once. |