[RFC PATCH 0/5] Reducing prefix size with FUSE OverlayFS

Jacek Caban jacek at codeweavers.com
Wed Apr 1 16:07:58 CDT 2020


Hi Rémi,

On 30.03.2020 14:24, Rémi Bernon wrote:
> I have been playing with fuse-overlayfs [1] lately to reduce prefix size
> and speed up wine startup time, and I thought maybe someone else could
> be interested, and I would definitely be interested in some feedback,
> especially if anyone already tried.


This is an interesting experiment, do we really need overlayfs to 
achieve that? We control all access to files, so it seems we could 
implement such copy on write in ntdll. On prefix creation we could 
create only some 'markers' in drive_c that ntdll could recognize and 
lookup builtin files for the actual file to open. When opening for read, 
it would just open the file from Wine installation. When opening for 
write, we would need to create the actual file and potentially copy it. 
I'm sure there are a number of things making it tricky, but it should be 
doable. This would not have any of mentioned prefix update problems and 
would be more portable.


One possibility for those 'markers' is something discussed in context of 
Windows symlinks. It could be a UNIX symlink with a magic target with 
magic prefix in its target.


Thanks,

Jacek




More information about the wine-devel mailing list