Hello, OKUJI!

>   BTW does FreeBSD have an interface to flush the buffer cache, like
> BLKFLSBUF in Linux? Or can FreeBSD flush it automatically?

First of all, BLKFLSBUF is IMHO misnamed in Linux. It invalidates the
buffers, which is probably not the same as flushing.

Scanning for "flush", "inval" and "buffer" in FreeBSD-3.3-RC sources shows
that something similar happens when filesystems are remounted with new
parameters. But it is not what we need, if I understand correctly. We need
disk-wide flushing.

In fact, I can't imagine any bad consequences of non-flushing the buffers,
so I would prefer either leave the code as is or remove it for Linux too.

Pavel Roskin

Reply via email to