0001 .. SPDX-License-Identifier: GPL-2.0
0002
0003 ======================================
0004 Linux SCSI Disk Driver (sd) Parameters
0005 ======================================
0006
0007 cache_type (RW)
0008 ---------------
0009 Enable/disable drive write & read cache.
0010
0011 =========================== === === =========== ==========
0012 cache_type string WCE RCD Write cache Read cache
0013 =========================== === === =========== ==========
0014 write through 0 0 off on
0015 none 0 1 off off
0016 write back 1 0 on on
0017 write back, no read (daft) 1 1 on off
0018 =========================== === === =========== ==========
0019
0020 To set cache type to "write back" and save this setting to the drive::
0021
0022 # echo "write back" > cache_type
0023
0024 To modify the caching mode without making the change persistent, prepend
0025 "temporary " to the cache type string. E.g.::
0026
0027 # echo "temporary write back" > cache_type