sspec_automount

anders.roslund-uatLPfZoX+lvmJmQz4FtxlaTQe2KTcn/@public.gmane.org
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
HI

In my system I am running an FTP server with a FAT file system. To initialize the FAT system I am using the following command which I have found in a sample code:

rc=sspec_automount(SSPEC_MOUNT_ANY, NULL, NULL, NULL);
if (rc) {
   	printf("Failed to setup FAT.  Please refer to FAT samples/documentation.n");
   	exit(1);
 }

The problem is that when I run my program after an uncontrolled shut down I get rc==0 even though the file system is uninitializable. This only happends in my code even though the snippet is identical to the sample code. Every time I use the sample code to restore (initializing) the file system everything gets back to normal.

It is a little annoying since I can't reproduce the error that is causing this file system breakdown.

Has this ever happened to anyone of you guys?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.