GetDeviceOpTab ?
Posted: Fri Dec 17, 2010 10:16 pm
Hello, there.
I'm investigating a bug in my code that could be due to diropen() 's behaviour to have changed over the last few years. I used to provided it with a relative path, e.g. diropen(".") for reading the root directory of the default FAT device -- typically my microSD card in a R4 linker. I had a look at the implementation of diropen in libfat, which contains a 'curious'
And _FAT_partition_getPartitionFromPath() actually delegating the job to GetDeviceOpTab(char*) function, to my best understanding. I lack some documentation on the argument, whether some "device:/path..." must be used, and which are the possible "device:" values.
Any hint ?
I'm investigating a bug in my code that could be due to diropen() 's behaviour to have changed over the last few years. I used to provided it with a relative path, e.g. diropen(".") for reading the root directory of the default FAT device -- typically my microSD card in a R4 linker. I had a look at the implementation of diropen in libfat, which contains a 'curious'
Code: Select all
state->partition = _FAT_partition_getPartitionFromPath (path);
if (state->partition == NULL) {
r->_errno = ENODEV;
return NULL;
}
Any hint ?