[PATCH] scsi:Documentation: add sd-parameters.txt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 Documentation/scsi/sd-parameters.txt | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/scsi/sd-parameters.txt

diff --git a/Documentation/scsi/sd-parameters.txt b/Documentation/scsi/sd-parameters.txt
new file mode 100644
index 0000000..88ea9a2
--- /dev/null
+++ b/Documentation/scsi/sd-parameters.txt
@@ -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
-- 
2.9.4




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux