From: Pavel Roskin <[EMAIL PROTECTED]>
Subject: Re: quit command
Date: Tue, 22 Jun 1999 12:23:21 +0400 (EEST)

> I would also recommend running "sync" before /sbin/grub. It is common that
> stage2 is copied or otherwise changed just before running /sbin/grub
> If the cache has not been flushed, wrong file will be modified. It has
> already happened to me (if I interprete it correctly).

  That's all right. I think the following method is good enough:

1) Call sync at the startup code.
2) Do whatever you want.
3) Call sync at the cleanup code.
4) Call ioctl with BLKFLSBUF in Linux (I don't know the alternative in
   Hurd).

Thanks for your suggestion,
OKUJI
----------------------------------------------------------------------
OKUJI Yoshinori  <[EMAIL PROTECTED]>           ^o-o^
http://duff.kuicr.kyoto-u.ac.jp/~okuji (in English)     m /

Reply via email to