This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
FAT FS Dir Entry Structure Format
- From: "Ramana B.V" <ramana_b_v at hotmail dot com>
- To: ecos-discuss at sourceware dot org
- Date: Sat, 19 Aug 2006 05:57:44 +0000
- Subject: [ECOS] FAT FS Dir Entry Structure Format
- Bcc:
Hi
We have the Fat FS of Ecos working on our unit. Everything seems to be
owrking OK.
However the Directory entry seems to be using the follwoing structure
typedef struct fatfs_dir_entry_s
{
char filename[12+1]; // File name
mode_t mode; // Node type
size_t size; // Size of file in bytes
time_t ctime; // Creation timestamp
time_t atime; // Last access timestamp
time_t mtime; // Last write timestamp
cyg_uint8 priv_data; // Private data
cyg_uint32 cluster; // First cluster number
cyg_uint32 parent_cluster; // First cluster of parent dentry
fatfs_data_pos_t disk_pos; // Position of dir entry on disk
#ifdef CYGCFG_FS_FAT_USE_ATTRIBUTES
cyg_fs_attrib_t attrib; // Attribute bits for DOS compatability
#endif //CYGCFG_FS_FAT_USE_ATTRIBUTES
} fatfs_dir_entry_t;
1. The size is 36 bytes and I haven't come across any definition for 36
Bytes any where. Can soemone help in identifying why this is so
2. I am able to format and populate the Disk ( Through USB Mass storage) and
then read the files through ecos file system. So it looks as if there is
compatibility. However there is no DOS Fat specification mentioning this
type of Directory Entry
3. If we use Long file names ( Not supported under ECOS FAT) then the names
are being stored in a very funny way.
Has any one come across a directory entry definition for long files names
using 36 byte directory entry.
I am only seeing a definition for 32 bytes Directory entry
Thanks in advance
Regards
Ramana B.V
_________________________________________________________________
One and only Ash. Find out all about her. Only on MSN Search
http://server1.msn.co.in/profile/aishwarya.asp
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss