DOSFS and the short and Long file names.
Nasir, Aliasgar ( SBU-ETS )
aliasgar.nasir at igatepatni.com
Thu Aug 4 03:59:04 UTC 2011
With the RTEMS4.10, we noticed that there is concept about long and short file names in the DOSFS.
We use the DOSFS on an SDCARD. When we try to write a file on the card, with file name say 'Error2.txt', the DOSFS detects this as a long file name and then executes the below code in function msdos_find_name_in_fat_file(), while creating the file.
if (name_type == MSDOS_NAME_LONG)
int slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
The above piece of code modifies the file name as ERR~0005.TXT. This is the file name seen when we see the contents of the card on a Windows based machine using card reader. The file name of the file as seen from the RTEMS shell is still 'Error2.txt'
Can anyone guide as what should be done to see a the correct file name (Error2.txt) on the Windows machine?
Information contained and transmitted by this e-mail is confidential and proprietary to iGATE Patni and its affiliates and is intended for use only by the recipient. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail is strictly prohibited and you are requested to delete this e-mail immediately and notify the originator or mailadmin at igatepatni.com. iGATE Patni does not enter into any agreement with any party by e-mail. Any views expressed by an individual do not necessarily reflect the view of iGATE Patni. iGATE Patni is not responsible for the consequences of any actions taken on the basis of information provided, through this email. The contents of an attachment to this e-mail may contain software viruses, which could damage your own computer system. While iGATE Patni has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening an attachment. To know more about iGATE Patni please visit www.igatepatni.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users