[stgt] Write-cache in tgtd during a target-host crash
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Thu Apr 22 13:59:11 CEST 2010
On Wed, 21 Apr 2010 19:51:49 +1000
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
> I think that when you change the mode page like this, it does not
> change the behaviour of tgtd but only of what
> tgtd will respond when a initiator does a mode sense for that page.
Actually, it does. tgt follows the mode page settings properly.
With the default mode page settings, you get the following on the
initiator box:
clover:/home/fujita# sdparm --get=WCE /dev/sda
/dev/sda: IET VIRTUAL-DISK 0001
WCE 1 [cha: y, def: 1]
With Chris's settings, you get the following on the initiator box:
clover:/home/fujita# sdparm --get=WCE /dev/sda
/dev/sda: IET VIRTUAL-DISK 0001
WCE 0 [cha: n, def: 0]
Of course, if you don't like the default settings, you can do on the
initiator box:
clover:/home/fujita# sdparm --clear=WCE /dev/sda
/dev/sda: IET VIRTUAL-DISK 0001
clover:/home/fujita# sdparm --get=WCE /dev/sda
/dev/sda: IET VIRTUAL-DISK 0001
WCE 0 [cha: y, def: 0]
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list