TR : DOSFS unlink problem

Etienne Fortin etienne.fortin at sensio.tv
Thu Nov 25 18:07:18 UTC 2004


It seems that someone have the exact same problem that I just described.

http://www.rtems.com/ml/rtems-users/2004/november/msg00222.html

Etienne




-----Message d'origine-----
De : Etienne Fortin [mailto:etienne.fortin at sensio.tv] 
Envoyé : 25 novembre, 2004 13:03
À : rtems-users at rtems.com
Objet : TR : DOSFS unlink problem



-----Message d'origine-----
De : Etienne Fortin [mailto:etienne.fortin at sensio.tv] 
Envoyé : 25 novembre, 2004 13:02
À : rtems-users at rtems.com
Objet : DOSFS unlink problem


Hi everyone,
Me again, with my problems :)

I mounted a filesystem (DOSFS) on /storage.

In /storage I have a directory named bitstr.

So the basepath is /storage/bitstr.

I can create files in /storage/bitstr.

I can list the files with opendir/readdir...

BUT, I can't remove files in /storage/bitstr.

Somewhere in unlink, there's a call to
rtems_filesystem_evaluate_parent(). It searchs for parent of
/storage/bitstr (or so it seems). It finds the parent, and it's type is
RTEMS_FILESYSTEM_MEMORY_FILE and not FAT_DIRECTORY. So, it throws up an
error saying that it's not a directory.

Quite strange...

Any idea?

Etienne Fortin
Sensio





More information about the users mailing list