Skip to content

Commit

Permalink
scsi: sd: Documentation: add sd-parameters.txt
Browse files Browse the repository at this point in the history
Add a file for documenting SCSI sd module parameters and describe the
cache_type setting.

[mkp: tweaked text a bit]

Signed-off-by: Weiping Zhang <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
Weiping Zhang authored and martinkpetersen committed Mar 2, 2018
1 parent 29e79e0 commit 18d595b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Documentation/scsi/sd-parameters.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Linux SCSI Disk Driver (sd) Parameters
======================================

cache_type (RW)
---------------
Enable/disable drive write & read cache.

cache_type string | 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

To set cache type to "write back" and save this setting to the drive:

# echo "write back" > cache_type

To modify the caching mode without making the change persistent, prepend
"temporary " to the cache type string. E.g.:

# echo "temporary write back" > cache_type

0 comments on commit 18d595b

Please sign in to comment.