Hi Chris, <br><br>I did not fully understand your statement.<br>
<br><b>"This is the RTEMS implementation and it should change. The ares of code is 'cpukit/libfs/src/dosfs/msdos_</b><div id=":hm"><b>misc.c' about line 1429. If you add a test of the long file being made suitable short file name characters and<br>
8.3 then you could copy the long file name with an uppercase convert to the short file name.</b>"<br>
<br>Do you mean that if the file name is mixed case, then we should
first verify if it satisfies the 8.3 criteria. If it meets the 8.3
criteria, then we should not call the below function at line 1429:
<br>msdos_short_name_hex(MSDOS_DIR_NAME(name_dir_entry), slot);<br><br>Meaning, if the file name is say New.txt (which is a mix of
both cases and also satisfies the 8.3 criteria), then the above function
should not be called. Am I right?<br>
<br>Thanks and Regards,<br>Ali<br>
>><br>
>> -----Original Message-----<br>
>> From: Chris Johns [mailto:<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>]<br>
>> Sent: Friday, August 05, 2011 6:10 AM<br>
>> To: Nasir, Aliasgar ( SBU-ETS )<br>
>> Cc: <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
>> Subject: Re: DOSFS and the short and Long file names.<br>
>><br>
>> On 4/08/11 8:15 PM, Nasir, Aliasgar ( SBU-ETS ) wrote:<br>
>>> Hi Chris,<br>
>>><br>
>>> Thanks for the reply.<br>
>>><br>
>>> If the file name has only lower case letters, then the name
in not distorted on Windows. However, on the Windows, the file name
shows all characters as upper case.<br>
>>><br>
>><br>
>> This is how short file names are recorded in the directory table with<br>
>> DOSFS. For RTEMS I made the file names lower case. They had to be<br>
>> something. I always a mount option could be added if this was an issue<br>
>> to turn the lower case mode off.<br>
>><br>
>>> If the file name has just upper case letter, the name appears distorted on Windows. Is this desired behavior?<br>
>><br>
>> I suspect not. I wonder if in this case a long entry is made with the<br>
>> mixed case and the short name has the file name in upper case. Just<br>
>> checked with a FAT disk on Windows XP and this is the case:<br>
>><br>
>> H:\>dir /x /n<br>
>> Volume in drive H has no label.<br>
>> Volume Serial Number is 5790-9778<br>
>><br>
>> Directory of H:\<br>
>><br>
>> 05/08/2011 10:14 AM 4 UPPER.TXT Upper.txt<br>
>> 1 File(s) 4 bytes<br>
>> 0 Dir(s) 100,130,816 bytes free<br>
>><br>
>>><br>
>>> If the file name has only upper case and a numeral (0 - 9), then the name is again seen distorted on Windows.<br>
>>><br>
>>> But still I am not able to figure out why mixed case file
names are seen distorted in Windows. Do you have any idea? Or is there
any solution to this problem?<br>
>>><br>
>><br>
>> This is the RTEMS implementation and it should change. The ares of code<br>
>> is 'cpukit/libfs/src/dosfs/msdos_misc.c' about line 1429. If you add a<br>
>> test of the long file being made suitable short file name characters and<br>
>> 8.3 then you could copy the long file name with an uppercase convert to<br>
>> the short file name.<br>
>><br>
>>> Or as a rule we have to ensure that we make files names
with only lower case when working with DOSFS with RTEMS4.10. Is this
true? Otherwise we end up seeing distorted names on Windows.<br>
>><br>
>> I suppose so until the behavior is changed.<br>
>><br>
>>> Information contained and transmitted by .....<removed><br>
>><br>
>> Last post I respond to with this signature appended. Please read the<br>
>> policies and use a web based email account you cannot control the signature.<br>
>><br>
>> Chris</div>