Re: Write-cache in tgtd during a target-host crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 21 Apr 2010 19:51:49 +1000
ronnie sahlberg <ronniesahlberg@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux