> From: Mike Belopuhov <m...@belopuhov.com>
> Date: Tue, 22 Oct 2013 15:48:22 +0200
> 
> On 22 October 2013 15:22, Mark Kettenis <mark.kette...@xs4all.nl> wrote:
> > Diff below makes bioctl(4) print the cache policy for that's currently
> > in effect for RAID volumes.  It only prints the state (WB for
> > write-back, WT for write-through) if the RAID controller driver fills
> > in the details in response to a BIOCVOL ioctl.  This diff adds such
> > support to mfi(4).
> >
> > # bioctl mfi0
> > Volume      Status               Size Device
> >      mfi0 0 Online        72746008576 sd0     RAID1 WB
> >           0 Online        73407820800 1:0.0   noencl <HITACHI 
> > HUS153073VLS300 A598>
> >           1 Online        73407820800 1:1.0   noencl <HITACHI 
> > HUS153073VLS300 A598>
> >
> > ok?
> >
> >
> 
> mpii specs do not use terms write-back or write-through, they rather
> talk about write cache being enabled or disabled.  they obviously
> mean write-back cache.  i believe for the bioctl user it's more
> important to know if actual writes are deferred or not, so i would
> rather say "Write Cache Enabled/Disabled" or "Write Cache On/Off" or
> something similar rather then if it's WB or WT.  oterwise people will
> have to look in the man page for what WB or WT stands for and then
> search wikipedia for what does it mean..
> 
> just my 2 cents.

I committed the diff as-is.  As dlg@ pointed out things are a bit more
complicated than just a binary on/off.  At least the mechanism is
there now, and it is easy to change the way bioctl(8) presents this
information to the user.

Reply via email to