[ECOS] JFFS2 umount error

Gary Thomas gary@mlbassoc.com
Thu May 13 17:01:00 GMT 2010


Please keep your replies on the mailing list so that all may benefit.

On 05/13/2010 10:34 AM, PMD Chakravarthy wrote:
> Hi Gary,
>
> Thanks for the reply. I am trying to umount the filesystem before a
> reboot. How can I close all open files before a reboot(and unmount)?
> If I don't successfully unmount and force reboot(power cycle) the
> system, I am seeing 2 behaviours.
>
>    a) The file which is open(Ino #9) during unmount is lost.
>    b) Some times other files in the filesystem are also lost(CRC errors).
>
> How can I avoid situation #b ?

I no nothing of your application so it's hard to tell you what to do.
If you are trying to reboot, you're going to need to figure out a way
to make sure all open files have been closed.  This will require some
application knowledge as the problems you are having may not be directly
related (certainly not case a) to JFFS2, but rather buffered I/O (such
as the standard fwrite() functions)

> On Thu, May 13, 2010 at 8:59 PM, Gary Thomas<gary@mlbassoc.com>  wrote:
>> On 05/13/2010 09:20 AM, PMD Chakravarthy wrote:
>>>
>>> Hi,
>>>
>>> I am using jffs2 file system on ecos 3.0. I am getting the following
>>> errors when try to unmount the filesystem.
>>>
>>> Refuse to unmount.
>>> Ino #1 has use count 2
>>> Ino #9 has use count 1
>>>
>>> Did any one see these kind of issues? What could be the reason for
>>> these warning messages.
>>
>> You still have files open (inode #1&  #9).  You can't unmount
>> the file system until all files have been closed.
>>
>> Figure out the file name of those inodes and close them.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list