Detecting free space greater than 4 GB | developer.brewmp.com Detecting free space greater than 4 GB | developer.brewmp.com

Developer

Detecting free space greater than 4 GB

Forums:

HI ALL

 

I am using Brew SDK 3.1.5 supported handset which is of 3.1.5.145, i want to check free space available in SD card which is of 8GB card. SO i used ISHELL_GetDeviceInfoEx() API, but i am getting return value as 20 which is API UNSUPPORTED..

SO can anyone tell is thr any other way to check free space available in 8 GB card????

 

my code snippet

uint64 fsFreeSpace;

int nSize = sizeof(fsFreeSpace);

int nErr;

nErr = ISHELL_GetDeviceInfoEx(piShell,AEE_DEVICEITEM_FSSPACE_CARD0, (void*)&fsFreeSpace, &nSize);

 

its returning always 20 i,e nErr=20

 

 

Use IFILEMGR_GetFreeSpaceEx(). See API reference for details.

Use IFILEMGR_GetFreeSpaceEx(). See API reference for details.

We cannot use this API for more then 4GB . please see this link specified  https://developer.brewmp.com/forum/detecting-free-space-greater-4-gb
 

We cannot use this API for more then 4GB . please see this link specified  https://developer.brewmp.com/forum/detecting-free-space-greater-4-gb
 

Error 20 means unsupported. The specific device you are testing does not appear to support reporting file system space larger than 4GB. I would expect most recently-launched Brew 3.1.5 devices to support this, as the capabilty was introduced quite some time ago on Brew 3.1.5. It was, however, introduced in one of the updates to Brew 3.1.5, so some of the early Brew 3.1.5 devices might not support it.

Error 20 means unsupported. The specific device you are testing does not appear to support reporting file system space larger than 4GB. I would expect most recently-launched Brew 3.1.5 devices to support this, as the capabilty was introduced quite some time ago on Brew 3.1.5. It was, however, introduced in one of the updates to Brew 3.1.5, so some of the early Brew 3.1.5 devices might not support it.