[Stgt-devel] disabling write cache?

Tomasz Chmielewski mangoo
Wed Jun 25 15:39:21 CEST 2008


FUJITA Tomonori schrieb:

(...)

> I've uploaded two patches:
> 
> http://stgt.berlios.de/patches/0001-iscsi-fix-sense-handling.patch
> http://stgt.berlios.de/patches/0002-sbc-add-WCE-support-to-bs_rdwr.patch

> With the patches, you can disable write caching in the following way:
> 
> tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 1 --params mode_page=8:0:18:0x10:0:0xff:0xff:0:0:0xff:0xff:0xff:0xff:0x80:0x14:0:0:0:0:0:0
> 
> Note that you need to modify tid and lun in your environment.

Any chance of having it more human-readable? I.e. something similar to 
"--params write_cache=disable" instead of 8:0:18:0x10:0:0xff:0xff:0:...?


> Shortly, I'll let you control write caching via sdparm too.

Great!
Could you notify the list when controlling via sdparm hits the git tree?


-- 
Tomasz Chmielewski
http://wpkg.org






More information about the stgt mailing list