unixfs: cache canonicalized unix paths corresponding to dos devices

Alexandre Julliard julliard at winehq.org
Thu Jun 16 16:26:45 CDT 2005

Michael Jung <mjung at iss.tu-darmstadt.de> writes:

> You mean like while an application is running? Wouldn't that break a lot of 
> applications, which store filenames in memory during runtime? 

No, you can remap drives on Windows too.

> In the current implementation, for every shitemid that is constructed, all 
> drives are queried and their paths are canonicalized, which is a lot of disk 
> i/o and string copying. Unixfs is really painfully slow. I guess we need some 
> caching scheme, but if you don't like the current one, I'll give it some more 
> thought.

I think the whole canonicalization thing is suspect; you should never
compare Unix path strings. If you have to compare paths you should use
stat and compare device/inode.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list