Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 11:46:46 +0000 (GMT)
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Pavel Roskin <pavel_roskin@geocities.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How to invalidate cache?
Message-ID:  <Pine.BSF.4.05.9909171142510.6392-100000@fw.wintelcom.net>
In-Reply-To: <Pine.LNX.4.10.9909171613140.32722-100000@intra.typhoon.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 17 Sep 1999, Pavel Roskin wrote:

> Hello!
> 
> GRUB (GRand Unifiead Bootloader,
> http://www.gnu.org/software/grub/grub.en.html) is a bootloader that can
> boot Linux, *BSD and *Mach directly and other systems using their
> bootsectors.
> 
> The development version of GRUB has an installer that can install the
> bootloader without having to reboot.
> 
> The installer writes directly to the disk.
> The questions is: what precautions should be done before and after writing
> to /dev/rwd0 ? (or should that be /dev/wd0 ?)

If possible do so in an order that if anything should happen the system
will still boot. :)

> More specifically, is it possible to invalidate the cache for the whole
> disk? Is it necessary?

Access to raw devices is not buffered, for a non buffered operation
use the raw version of the device (/dev/r<device>)

> It there anything similar BLKFLSBUF in Linux?

Not needed when accessing raw devices, in fact there is talk of
buffered block devices "going away" so using raw devices is probably
a wiser move.

good luck,
-Alfred



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9909171142510.6392-100000>