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

Back to archive index
Basin Ilya basin****@gmail*****
Sat Jan 12 22:11:43 JST 2019


Right, it's MSYS2.

On 12.01.2019 16:06, Eli Zaretskii wrote:
>> From: Basin Ilya <basin****@gmail*****>
>> Date: Sat, 12 Jan 2019 15:54:51 +0300
>>
>> 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.
> 
> Which 'stat' is that?  AFAICT, MinGW doesn't provide its own
> implementations, so a MinGW program will use 'stat' from MSVCRT.DLL,
> which AFAIK doesn't read the file at all.  Are you sure you aren't
> using some 3rd-party library which does what you describe?  Or maybe
> you are using MinGW64? or Cygwin? or MSYS2?
> 
> _______________________________________________
> MinGW-Users mailing list
> MinGW****@lists*****
> 
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.
> 
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.osdn.me/mailman/listinfo/mingw-users
> Also: mailto:mingw****@lists*****?subject=unsubscribe
> 



More information about the MinGW-Users mailing list
Back to archive index