sd-parameters.rst 993 B

123456789101112131415161718192021222324252627
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ======================================
  3. Linux SCSI Disk Driver (sd) Parameters
  4. ======================================
  5. cache_type (RW)
  6. ---------------
  7. Enable/disable drive write & read cache.
  8. =========================== === === =========== ==========
  9. cache_type string WCE RCD Write cache Read cache
  10. =========================== === === =========== ==========
  11. write through 0 0 off on
  12. none 0 1 off off
  13. write back 1 0 on on
  14. write back, no read (daft) 1 1 on off
  15. =========================== === === =========== ==========
  16. To set cache type to "write back" and save this setting to the drive::
  17. # echo "write back" > cache_type
  18. To modify the caching mode without making the change persistent, prepend
  19. "temporary " to the cache type string. E.g.::
  20. # echo "temporary write back" > cache_type