Created attachment 794482 [details] Proposed patch This patch is for rewriting existing files on overlayfs and fixes issue described in comment#0. I will send it upstream once I have done some more review of the patch.