Re: Re: Ext3 Quick Shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Its actually impossible to do fsync in such a short time. An option would be to write your NMI routine and after doing fsync call the standard NMI routine.

niTin

-----Original Message-----
From: Julien Danjou <julien@xxxxxxxxxxx>
To: Ashwin Ramaswamy <a.galadriel@xxxxxxxxx>
Date: Thu, 12 May 2005 14:58:00 +0200
Subject: Re: Ext3 Quick Shutdown

On Thu, May 12, 2005 at 06:06:14PM +0530, Ashwin Ramaswamy wrote:
> Hi,
> I'm working on a 2.4.20-8 kernel running on an ext3 file-system. I'm
> in a situation  where the file-system needs to clean-up as soon as
> possible upon the receipt of a particular NMI/Interrupt. Basically, I
> need to do an fsync and inform the ext3 layer that the "clean" flag
> must be turned on the file-system or something of that sort. Now,
> there's a minimal amount of time remaining after the interrupt arrives
> before the power is abruptly brought down. So, basically how do I make
> the ext3 FS clean within such a duration?

Maybe do an fsync and then remount it immediatly in read-only?
Just an idea.

-- 
Julien Danjou
// <julien@xxxxxxxxxxx>     http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux