delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
X-Recipient: | djgpp-workers AT delorie DOT com |
Subject: | Re: DJGPP on NTF with SFN creating disabled [was : gcc-8.1.0 packages |
for testing] | |
To: | djgpp-workers AT delorie DOT com |
References: | <0244cff9-6176-8aec-bbc2-6fc49602c295 AT iki DOT fi> |
<558b5ff2-71df-e556-a874-7acbb264c84a AT iki DOT fi> <5AED9B44 DOT 90000 AT gmx DOT de> | |
<df616b96-646c-788b-3177-87de740f03ae AT iki DOT fi> <5AEF5D3A DOT 2030409 AT gmx DOT de> | |
From: | "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com]" <djgpp-workers AT delorie DOT com> |
Message-ID: | <3569b441-e678-7252-ffdd-7c45f72a5c56@iki.fi> |
Date: | Mon, 7 May 2018 18:48:52 +0300 |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 |
Thunderbird/52.7.0 | |
MIME-Version: | 1.0 |
In-Reply-To: | <5AEF5D3A.2030409@gmx.de> |
X-MIME-Autoconverted: | from Quoted-Printable to 8bit by delorie.com id w47FmwOR032456 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On 05/06/2018 10:53 PM, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp-workers AT delorie DOT com] wrote: > Am 05.05.2018 16:04, schrieb Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp-workers AT delorie DOT com]: >> It is easy to test with any simple test program that tries to open file with LFN preasent and >> SFN missing. >> >> 1) disable SFN creating according to Microsoft instructions and reboot. It will not affect any >> already existing file for which SFN is already present >> (https://support.microsoft.com/en-us/help/121007/how-to-disable-8-3-file-name-creation-on-ntfs-partitions) >> >> 2) create some file lite test.file.1 (you can even do it with DJGPP tools as creating file works) >> 3) reenable SFN creating in registry and reboot to prevent problems with files created later >> >> After that You have a test file with missing SFN (one can try 'LFN=N ls -l' to verify that SFN >> is missing. >> 'cat test.file.1' is after that expected to fail. For debugging plain opening file for reading >> is sufficient for testing. >> >> Andris > > OK, I was able to reproduce this for Win2K and WinXP when they read/write on NTFS formated > partitions. > Have you already designed any fix for this issue? Is there any fix conceivable for this issue when > only long filenames have been created? IIRC on FAT file systems the short file name is created > first > and then the long file name is assigned to it. A long file name without a short filename does > not exist, > or am I missing something? > It seems that DJGPP mailing list has at least partial fix: http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp/2016/05/14/13:45:09 Patch was intended for exFAT which seems to not have SFN either. It works also for NTFS. (I had file around with SFN missing on Windows Vista Business 32-bit SP3 and did not remove it to have something for testing on NTFS) Andris
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |