I have a calling function that kicks off createFile(RAMFILE_NAME), does some work with the file and then calls umountFilesystem(), which returns the following error message through the SHOW_RESULT macro:
<FAIL>: umount() returned -1 Resource busy
The reason I'm trying to un-mount the file system (or FSSYNC) after unlinking the RAM file is due to the fact that the filesystem is buffered (see: https://www.sourceware.org/ml/ecos-discuss/2006-01/msg00160.html), which presents a problem for a limited-resource, embedded system that needs to create and delete files on a somewhat frequent basis. The solution discussed in that post is apparently to, "call it using a setinfo call with a FS_INFO_SYNC operation." However, I do not know how to implement this solution. Could you provide me an example or offer some help?