Niall Douglas
Niall Douglas
> nvme list uses the Identify Namespace command to extract this information. Depending on the namespace feature THINP this value can be static and equal to the namespace size: >...
Thanks for the suggestion. Stuff will get implemented "one day". I shall be leaving WG21 standards next summer. I expect my free time to rise thereafter.
Perhaps if it's not adding more files, and not returning no-more-files, it should double the buffer and retry? I suspect it could be a bug in the NT kernel code....
Oh okay. Just so I fully understand the problem here, for your particular directory of 733 files, `NtQueryDirectoryFile` even when fed an oversized buffer returns the full correct set first...
Ok, thanks very much for the additional context. You are definitely 100% sure you are compiling a 64 bit program and not a 32 bit program? I ask because the...
Can I prevail on your to test this commit? I don't have access to Windows. Well, strictly speaking, I currently only have access to ARM Windows, not Intel Windows, and...
Ok, thanks for testing. What I was hoping for was that the first enumeration dragged everything into kernel cache, so the second enumeration could do an atomic snapshot. If the...
Ok give that a try now. I now accept no more fill in the second API call as a terminating condition. Make sure it does actually fill everything in your...
I took a punt at writing a partially filling refactor, but it is failing unit tests so I clearly got something wrong and I'll need to use Windows to fix...
It must be something wrong with: if(done) { auto whattoadd = (7 + offsetof(what_to_enumerate_type, FileName) + ffdi->FileNameLength) & ~7; buffer_ = reinterpret_cast(reinterpret_cast(ffdi) + whattoadd); bytes -= whattoadd; } But I...