|FILE_ID_BOTH_DIR_INFORMATION| fields |ShortName|+|ShortNameLength| mandatory for Cygwin and Window 10 ?
Roland Mainz
roland.mainz@nrubsig.org
Thu May 2 11:34:21 GMT 2024
On Sat, Apr 27, 2024 at 5:03 PM Brian Inglis via Cygwin
<cygwin@cygwin.com> wrote:
>
> On 2024-04-27 07:08, Roland Mainz via Cygwin wrote:
> > Are the |FILE_ID_BOTH_DIR_INFORMATION| fields
> > |ShortName|+|ShortNameLength| mandatory these days, e.g. is it legal
> > to set |ShortNameLength = 0;| for Cygwin 3.4/3.5 in Windows 10 ?
>
> MS Windows 8/Server 2012+ disabled 8.3 short name generation on new
> volumes/partitions, for example see:
>
> https://ss64.com/nt/syntax-filenames.html
>
> https://archive.techarp.com/showarticle53b4.html?artno=827
>
> https://learn.microsoft.com/en-ca/archive/blogs/josebda/windows-server-2012-file-server-tip-disable-8-3-naming-and-strip-those-short-names-too
>
> https://learn.microsoft.com/en-ca/windows-server/administration/windows-commands/fsutil-8dot3name
Thanks...:-)
... for now I've disabled 8.3 short name generation in the
ms-nfs41-client driver (see
https://github.com/kofemann/ms-nfs41-client/commit/f5f276db6337f34d7705e9c981213e31adbb0c7d),
until I have time to implement working 8.3. short name algorithm...
[snip]
> > Is there anything else for a filesystem driver to do to indicate that
> > |ShortName| support is not available ?
>
> Also see fsutil behavior query|set disable8dot3 [[<volumepath> [{1|0}]]|<value>]
[snip]
> Sample commands:
> "fsutil 8dot3name set 1" - disable 8dot3 name creation on all volumes
> "fsutil 8dot3name set C: 1" - disable 8dot3 name creation on c:
Is there any filesystem driver/kernel API for this ?
[snip]
> Based on the above settings, 8dot3 name creation is enabled on c:
>
> % fsutil 8dot3name query d:
> The volume state is: 0 (8dot3 name creation is enabled).
> The registry state is: 2 (Per volume setting - the default).
Same question: Is there a driver/kernel API ?
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz@nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
More information about the Cygwin
mailing list