Restriction on creation of files | developer.brewmp.com Restriction on creation of files | developer.brewmp.com

Developer

Restriction on creation of files

Forums:

Hi all,
In brew device specification files<"*.qsc">,we have

FS_LIMITS_PER_MODULE 510 1500000

specifying limitation on the maximum number of files
that could be created.

What is the meaning of this?

Quote:
FS_LIMITS_PER_MODULE 510 1500000
Hi sumana,
Actually developers and OEMs can specify the maximum number of files a module is allowed to create and maximum amount of space the module is allowed to write. So actually there are two parameters, 1st specifying the no. of files and 2nd specifying the amout of space in bytes. these parameters can be set either in MIF or Device Configurator.
quoted parameter specifies that the total number of files module allowed to create is 510 and total amount of space module allowed to create is 1500000 bytes.
Note
Max. file range is from 7 to 65535
Max Space range is from 20480 to 4294967295 bytes.
Hope it helps.
Best Regards,
Ali Naqvi

Quote:
FS_LIMITS_PER_MODULE 510 1500000
Hi sumana,
Actually developers and OEMs can specify the maximum number of files a module is allowed to create and maximum amount of space the module is allowed to write. So actually there are two parameters, 1st specifying the no. of files and 2nd specifying the amout of space in bytes. these parameters can be set either in MIF or Device Configurator.
quoted parameter specifies that the total number of files module allowed to create is 510 and total amount of space module allowed to create is 1500000 bytes.
Note
Max. file range is from 7 to 65535
Max Space range is from 20480 to 4294967295 bytes.
Hope it helps.
Best Regards,
Ali Naqvi

Thank you very much AliNaqvi.
One more thing which I observed is, once the maximum number
of files, that the device supports, is created, IFILE_Write() function
return '0' even though I am trying to write to the existing file.
True or False.
Thanks.

Thank you very much AliNaqvi.
One more thing which I observed is, once the maximum number
of files, that the device supports, is created, IFILE_Write() function
return '0' even though I am trying to write to the existing file.
True or False.
Thanks.

Hi Sumana,
Try to obtain the Error using GetLastError function of IFileMgr interface. Try to run the MaxFileCount utility application downloadable from BREW Developers extranet on the system and watch the behavoir.
Best Regards,
Ali Naqvi

Hi Sumana,
Try to obtain the Error using GetLastError function of IFileMgr interface. Try to run the MaxFileCount utility application downloadable from BREW Developers extranet on the system and watch the behavoir.
Best Regards,
Ali Naqvi

Hi all,
The statement IFILE_Write() returns "0" ,even if I try to write to the existing file ,after the maximum number of files the device suppotrs is created is wrong.
It returns zero only if memory allocated for the creation of files
is full.

Hi all,
The statement IFILE_Write() returns "0" ,even if I try to write to the existing file ,after the maximum number of files the device suppotrs is created is wrong.
It returns zero only if memory allocated for the creation of files
is full.