develooper Front page | perl.perl5.porters | Postings from April 2019

Re: [perl #133754] Test failures on Windows with 8.3 filenamesdisabled

Thread Previous | Thread Next
Richard Leach
April 4, 2019 19:54
Re: [perl #133754] Test failures on Windows with 8.3 filenamesdisabled
Message ID:
On Mon, Jan 7, 2019 at 1:37 PM Steve Hay (via RT)
<> wrote:
> If I run the test suite on my C: drive then all tests pass, but on my
> D: drive I get a bunch of failures:
> ...
> The difference seems to be that 8.3 filenames are disabled on my D:
> drive, as I can see using the fsutil.exe program:
> ...
> It is possible to query the registry, but if (as on my system) the
> setting has been made per-volume rather than globally on or off then
> I'm not sure exactly which settings need querying:

Hi Steve,

The per-volume setting doesn't appear to be stored in the Registry
(based on use of Procmon on a test VM). Instead, it's stored in the
FILE_FS_PERSISTENT_VOLUME_INFORMATION structure [1], intended to be
queried with the NtFsControlFile function [2]

There are a few online discussions where people advise using
GetVolumeInformation (which underpins Win32::FsType), but that advice
seems to be bogus. [3]



Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About