X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 441CB3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1714230260; bh=NOL+uGoFrTLCRsk8tX/fKJKmYk7aqAPPtvat+TZkpxE=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ulgvlTt4AJiYnlSoLCJJqiwSxTrW8Eby54+kr1PCGjWnrP9Uh6EJqaX2vVnNdz5fi 8mK5P4i5jOtn67Ahcrn2VgsLmmJoJN7VK8j9YYDfOzf/VpgSkmjVnHD65wbCOY53/b 97GtIfmkW2pSMuLDeKQMpZrjlqrHUrs4q0CpjebQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 41F9E3858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 41F9E3858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714230207; cv=none; b=PBi1oapO71dfQYESC0ADEcOhwy0Rdo40PzTOmEfeaYVfR37FUhQsKGaWHmiRbPV7ou8Ym/y5gEqZRVRdpHo68zZgp+GKSe71oFJg5Zvgpk4gJJtkJQXRzGGGlxhdnAuERqLL3Mr1b06+NdpNtkot9IL5c1nSUX5BnGfLt8ypnAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714230207; c=relaxed/simple; bh=3yYi7WPgM46/syN1VPUSP3AgZ5tN2zRiUrNbASNLM4k=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=h52NDizcpC2yuELswbj/Nvv/WKfgBL7ZkWjRW6IPy7VAXN4rxm1+jJ0olRCLEI1OyWfcaRdqOD1n5iyprdg4+9jyLJNG0UbvU1ccukczuKFZKSNGb07PBz0pvADCoJtZNUHzA4nLnJgYf0Ynwwd0rDPTc0f00uX932lIaxsbYnY= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: <422e1905-75fc-4b4a-a670-049ece77221b@SystematicSW.ab.ca> Date: Sat, 27 Apr 2024 09:03:21 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: |FILE_ID_BOTH_DIR_INFORMATION| fields |ShortName|+|ShortNameLength| mandatory for Cygwin and Window 10 ? Content-Language: en-CA To: cygwin AT cygwin DOT com References: Organization: Systematic Software In-Reply-To: X-Rspamd-Queue-Id: 571362000E X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Stat-Signature: sfbtwgjn9pqrareziyesfyfstx7cse8q X-Rspamd-Server: rspamout05 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1/2ATpxg+FOdi91Nua/ifCXwMNqiOVF5ow= X-HE-Tag: 1714230202-737573 X-HE-Meta: U2FsdGVkX192e3pqwlc3ehxnLrnMJUjpjwQzOvK8++52xVPEQxNgb5iwmFzzUn+W5T+r1pLvhdY4ecyxVAfCxeW/KvexQEXVZgIXb3vV3NWw/IIOhrYcPQhVQt/gOL32P9ZrLww2Cm/GWvyPuEpnd3gZWmlKUMOJph7f+UGKsT9dXRYAfj3WUuhrI6hq2kZQUghTsq5+m3xxCEQrmNzy8zLXG2H1XRSB9ETJxZnuRFaM71BblqVQrUhqJ+X7Rb4Brqh4J+ykxdmUAUHLqLUpov8oKSPZPeCNwSB9V8xnza23tUQZlufvgYf5aKgkNJkpiUgcUDdKdke2DLJIKQ05jiycVjFaNg6cc3HBOsOp4FfZ/QYOYKmTy0l1HpGIsLD0v2VGMRiCnFSl5Qbjy1VcCMHNzt7riyEVVq4y6/BsI33mdx0/XEfsTRP3os22Yf824w/4Xf2GekybruSUsttUqMsocFRTU3w7j5yLAQO3b3NrPlQiBCF5OCPKB/ONnS4VHE9W7oW53duaIR8Tj7QfbrQCqJv0U6dR X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43RF4MLG2539401 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 This really makes a big difference on directories like /var/log/ and /tmp/ if apps create a lot of files with similar name prefixes there, for example, date/time suffixed long file names from multiple hourly cron jobs, as long names can be queried via the B-tree but short names have to be scanned sequentially. > 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 [[ [{1|0}]]|] % fsutil 8dot3name set /? usage : fsutil 8dot3name set [0 through 3] | [ 1 | 0] When a volume is not specified the operation updates the registry value: 0 - Enable 8dot3 name creation on all volumes on the system 1 - Disable 8dot3 name creation on all volumes on the system 2 - Set 8dot3 name creation on a per volume basis 3 - Disable 8dot3 name creation on all volumes except the system volume When a volume is specified the operation updates the individual volume's on disk flag. This operation is only meaningful if the registry value is set to 2. 0 - Enable 8dot3 name creation on this volume 1 - Disable 8dot3 name creation on this volume This operation takes effect immediately (no reboot required). Sample commands: "fsutil 8dot3name set 1" - disable 8dot3 name creation on all volumes "fsutil 8dot3name set C: 1" - disable 8dot3 name creation on c: % regtool get -v /proc/registry/HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/FileSystem/NtfsDisable8dot3NameCreation 2 % fsutil 8dot3name query c: The volume state is: 0 (8dot3 name creation is enabled). The registry state is: 2 (Per volume setting - the default). 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). Based on the above settings, 8dot3 name creation is enabled on d: -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple