new file mode 100644
@@ -0,0 +1,23 @@
+Linux SCSI sd Parameters
+============================================================
+
+scsi disk
+----------------------------------------
+Path: /sys/block/sdx/device/scsi_disk/x:x:x:x/*
+
+* Name: cache_type
+* Description: enable/disable write&read cache
+
+Encoding | WCE RCD | Write_cache Read_cache
+-------------------------------------------------------------
+write through | 0 0 | off on
+none | 0 1 | off off
+write back | 1 0 | on on
+write back, no read (daft) | 1 1 | on off
+
+For "temporary", it only change request_queue's flag, not send
+any command to disk, so actually disk'cache doesn't changed yet.
+
+* Usage:
+echo "write back" > cache_type
+echo "temporary write back" > cache_type
this document include SCSI disk and SCSI device parameters, add cache_type firstly, other parameters will be added later. Signed-off-by: Weiping Zhang <zhangweiping@didichuxing.com> --- Documentation/scsi/sd-parameters.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/scsi/sd-parameters.txt