mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
ovl: fsync after copy-up
[ Upstream commit 641089c154 ]
Make sure the copied up file hits the disk before renaming to the final
destination. If this is not done then the copy-up may corrupt the data in
the file in case of a crash.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
This commit is contained in:
parent
cc30a01ae4
commit
dff2cd539e
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue