Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 2010 15:29:45 -0800
From:      Xin LI <delphij@delphij.net>
To:        freebsd-current@freebsd.org
Cc:        Alexander Motin <mav@FreeBSD.org>
Subject:   Re: two ata write chaching request
Message-ID:  <4D0FE6E9.1020609@delphij.net>
In-Reply-To: <20101220231005.GA68477@freebsd.org>
References:  <20101220231005.GA68477@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/20/10 15:10, Alexander Best wrote:
> hi there,
> 
> i'd really like to see
> 
> 1) write caching to be turned on and off for individual hdds
>    (i.e. hw.ata.X.wc) and

This is possible.  We may need to split the logic out from ad_init() as
the disk number is not known at that point if I understood the code
correctly.

> 2) to be able to turn write chaching on and off on the fly.

If I understand the code correctly, this is merely issuing a SETFEATURE
at runtime and *should* be possible.  The problem is atacontrol(8) does
not offer a way to issue the command directly as camcontrol(8) do.

> any thoughts on these two topics? is it technically possible?
> 
> cheers.
> alex
> 


- -- 
Xin LI <delphij@delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!	       Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iQEcBAEBCAAGBQJND+bpAAoJEATO+BI/yjfBi3oH/RbzpLEDhDGj3cwvGZtNi6gx
YuwWK77ybbJfm5OX1KAaBHMr954+8G9syiHzxamRwKSCsSooh9gdNL/ZUFFym9ay
gsGDslkNINCOu19Cyd3F9SLiN+wym22siFJqakMf1yiZqrC7qxwOee42erwRnN9C
+rbF25SWjNx+Y/BeCu+H9qwnzYZ719d2bNIA7DSgaOOcUUh+OQdKxt3JykEeUKpi
mrEZ5NFxyuSDMkFenY0o1Zj3dH7y2s2o8Y3iJ/dxPWZHjL+Z/CZqMvNHu4eZzOa6
2XasZSgf1tvyGnkPJEbo+ClZny3wfKXm6lwChmtCz1wF1zv1sSCW/uqzjeBC0T8=
=IOBO
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D0FE6E9.1020609>