lkml.org 
[lkml]   [1999]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: Clear reboot?
On 11-May-99 David Guo wrote:
> Hi.
> I have add some "feature" in the kernel to remote control it's reboot.
> When someone from a certain host trigger a certain port (like 24) for some
> times , the machine will reboot, I use machine_restart(NULL), But after
> reboot the ext2fs will have some bad inode or so. Is there any way to do
> sync before reboot ?

The best thing to do would be to run the shutdown script. If that's not
possible, remounting all partitions read-only should do the trick and save you
an fsck. You should be able to implement this with a simple system call.

-Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.080 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site