atacreate=ataDevCreate(0,0,0,0);
if (atacreate !NULL)
printf("\n Creation is Success");
else
printf("\n FAIL");
status=usrAtaConfig(0,0,"/ata0/");
if (status==OK)
printf("\n Configuration of FD is Success") ;
else
printf("Failed to mount DOS file system");
RESULT:
Creation is Success // with error no indicating volume not available
Failed to mount DOS file system
Please give a suggestion on this.....
Reds
china
You may want to check the errno to understand the problem. BTW, why do
you need to use 'ataDevCreate' and then 'usrAtaConfig'. Why do not you
simply use 'usrAtaConfig'. It should setup everything for you
including dosFs device create.
HI,
First check the return value of ataDevCreate() to be a valid handle to BLK_DEV
then configure the cache
then used the dosFsDevCreate( )
then use the sys std interface to the file accesses
Srinivas
Knowledge INCREASES when it is SPENT