1 .. SPDX-License-Identifier: GPL-2.0 1 .. SPDX-License-Identifier: GPL-2.0 2 2 3 ====================================== 3 ====================================== 4 Linux SCSI Disk Driver (sd) Parameters 4 Linux SCSI Disk Driver (sd) Parameters 5 ====================================== 5 ====================================== 6 6 7 cache_type (RW) 7 cache_type (RW) 8 --------------- 8 --------------- 9 Enable/disable drive write & read cache. 9 Enable/disable drive write & read cache. 10 10 11 =========================== === === ====== 11 =========================== === === =========== ========== 12 cache_type string WCE RCD Write 12 cache_type string WCE RCD Write cache Read cache 13 =========================== === === ====== 13 =========================== === === =========== ========== 14 write through 0 0 off 14 write through 0 0 off on 15 none 0 1 off 15 none 0 1 off off 16 write back 1 0 on 16 write back 1 0 on on 17 write back, no read (daft) 1 1 on 17 write back, no read (daft) 1 1 on off 18 =========================== === === ====== 18 =========================== === === =========== ========== 19 19 20 To set cache type to "write back" and save thi 20 To set cache type to "write back" and save this setting to the drive:: 21 21 22 # echo "write back" > cache_type 22 # echo "write back" > cache_type 23 23 24 To modify the caching mode without making the 24 To modify the caching mode without making the change persistent, prepend 25 "temporary " to the cache type string. E.g.:: 25 "temporary " to the cache type string. E.g.:: 26 26 27 # echo "temporary write back" > cache_type 27 # echo "temporary write back" > cache_type
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.