Marc LE DOUARAIN wrote:

> It's a good question...
>
> We are also working on a project where we will have the same problem in the near 
>future...
>
> But it doesn't help!
>
> Well, for now, I think that closing all the files opened is the minimum to do.
> Making a sync command should be usefull to ensure that the files have been really 
>written on disk.

If all the files are closed, will the system still perform an fsck.

>
>
> Using ext3 filesystem available now, can be usefull to avoid long fsck at the start.

I looked at this. It seems like it would do the trick. For a small partition, the fsck 
is short. What
I really care about is not having to perform user interaction as sometimes happens 
with a corrupt
file system.  Does ext3 guarantee this?

>
>
> Making an umount before power failure will ensure that all is ok for next start, but 
>will you have time to do all this?
> 20 ms seems to be really short... for all that :-(
> We are lucky, we will have a little battery with few seconds of autonomy...
>
> You can use a fifo to drive all this user space commands from RT world.

This would definitely require a battery to do this.  Can you recommend an inexpensive 
battery
solution.

Thanks, Dan Peters

>
>
> If people have other ideas...
> Many thanks.
>
> >>> [EMAIL PROTECTED] 15/02/02 20h56 >>>
> Hi,
> does anyone have any suggestions for umounting a small (about 30Mb) file
> system from rtl space?
> The user process is running in ramdisk and is subject to sudden power
> loss. I would like to log some data on the partition, but must be
> certain, that the system will start up without fsck.  My thought is to
> install a rtl interrupt which then generates a soft interrupt which
> umonts the disk. The power supply can detect power failure and generate
> the interrupt.  I have measured about 20 ms before power drops below a
> usable state.
>
> Also, is it necessary that the file system be umounted, or is just
> closing all open files?
>
> thanks,
>
> dan peters
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to