[Stgt-devel] disabling write cache?

Tomasz Chmielewski mangoo
Thu Jun 19 13:54:15 CEST 2008


Is there a way to disable write caching when using tgtd as a target?

Right now, it seems to be impossible (at least I didn't find an option 
in documentation nor sources) and setting it on the initiator fails:

initiator# sdparm /dev/sda
     /dev/sda: IET       VIRTUAL-DISK  0001
Caching (SBC) mode page:
   WCE         1  [cha: y, def:  1, sav:  1]
   RCD         0  [cha: n, def:  0, sav:  0]
(...)

initiator# sdparm --set WCE=0 /dev/sda
     /dev/sda: IET       VIRTUAL-DISK  0001
change_mode_page: failed setting page: Caching (SBC)


(using tgt-20080527 and open-iscsi 2.0-869).



-- 
Tomasz Chmielewski
http://wpkg.org



More information about the stgt mailing list