Messages in this thread | | | Date | Tue, 11 May 1999 20:20:13 -0700 (PDT) | From | "David B. Rees" <> | Subject | RE: 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/
| |