On Wed, Mar 2, 2011 at 11:54 AM, Okan Demirmen <o...@demirmen.com> wrote:
> I'm not certain this is wanted, but I said I would forward along this
> very simplisitc patch, so here it is.  If something like this is wanted,
> it can be re-worked to take multiple args to -e and such, but again,
> only if this is deemed necessary in a userland tool outside of scsi(8).
>

i think this is pointless.  if you have an ioctl implemented in the
driver that enables cache, then sd(4) itself will enable it for you.
if your driver doesn't implement those ioctls it gives you a false
idea that you can turn it on which is not true obviously.

> Index: bioctl.8
> ===================================================================
> RCS file: /cvs/src/sbin/bioctl/bioctl.8,v
> retrieving revision 1.84
> diff -u -p -r1.84 bioctl.8
> --- bioctl.8    22 Dec 2010 16:25:32 -0000      1.84
> +++ bioctl.8    2 Mar 2011 10:44:23 -0000
> @@ -35,6 +35,7 @@
>  .Op Fl hiqv
>  .Op Fl a Ar alarm-function
>  .Op Fl b Ar channel:target[.lun]
> +.Op Fl e Ar flag
>  .Op Fl H Ar channel:target[.lun]
>  .Op Fl R Ar device \*(Ba channel:target[.lun]
>  .Op Fl u Ar channel:target[.lun]
> @@ -128,6 +129,24 @@ digits to four or less.
>  .It Fl i
>  Enumerate the selected RAID devices.
>  This is the default if no other option is given.
> +.It Fl e Ar flag
> +Pass
> +.Ar flag
> +to
> +.Nm .
> +May be one of:
> +.Bl -tag -width disable -compact
> +.It Ar q
> +Query the read/write cache status.
> +.It Ar R
> +Enable the read cache.
> +.It Ar r
> +Disable the read cache.
> +.It Ar W
> +Enable the write cache.
> +.It Ar w
> +Disable the write cache.
> +.El
>  .It Fl q
>  Show vendor, product, revision, and serial number for the given disk.
>  .It Fl R Ar device \*(Ba channel:target[.lun]

Reply via email to