[Mingw-users] prevent ReadFile and QueryAllInformationFile on stat()

Zurück zum Archiv-Index
Basin Ilya basin****@gmail*****
Sat Jan 12 21:54:51 JST 2019


Hi.
Does anybody know how to prevent the stat() call read the first three bytes of the file and be satisfied by just GetFileAttributes() ?
This slows down a samba share listing a lot.
I'm using Windows 7, hence SMB2 and the metadata caching is not disabled in registry, but stat() queries a lot more than that. I don't want link count, ACL, etc. All I need is file size and mtime.



More information about the MinGW-Users mailing list
Zurück zum Archiv-Index