[En-Nut-Discussion] Limit number of files on a PHAT FS?

Ole Reinhardt ole.reinhardt at embedded-it.de
Mon Mar 17 11:17:50 CET 2008


Hey,

I just noticed that the number of files with similar long filenames is
limited to 99 files by the PHAT driver, but I would need to store up to
2000 files in a directory.

All these files have a filename composed of a timestamp and a 8 byte hex
number like:

20080317111403 at 00000001

Now it might occur that the first 8 characters will be the same for much
more that 99 files.

The problem seems to be located in 

static int PhatDirEntryAlloc(NUTFILE * ndp, CONST char *fname,
PHATDIRENT * entry)

Can I savely increase the value of 99 to 2000 or more? Why is there a
limitation?

Any other suggestions?

Regards,

Ole Reinhardt


-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|




More information about the En-Nut-Discussion mailing list