xref: /linux/Documentation/translations/zh_CN/scsi/sd-parameters.rst (revision f96163865a1346b199cc38e827269296f0f24ab0)
1.. SPDX-License-Identifier: GPL-2.0
2.. include:: ../disclaimer-zh_CN.rst
3
4:Original: Documentation/scsi/sd-parameters.rst
5
6:翻译:
7
8 郝栋栋 doubled <doubled@leap-io-kernel.com>
9
10:校译:
11
12
13
14============================
15Linux SCSI磁盘驱动(sd)参数
16============================
17
18缓存类型(读/写)
19------------------
20启用/禁用驱动器读写缓存。
21
22===========================    =====   =====   =======   =======
23 缓存类型字符串                 WCE     RCD     写缓存    读缓存
24===========================    =====   =====   =======   =======
25 write through                   0       0       关闭      开启
26 none                            0       1       关闭      关闭
27 write back                      1       0       开启      开启
28 write back, no read (daft)      1       1       开启      关闭
29===========================    =====   =====   =======   =======
30
31将缓存类型设置为“write back”并将该设置保存到驱动器::
32
33  # echo "write back" > cache_type
34
35如果要修改缓存模式但不使更改持久化,可在缓存类型字符串前
36添加“temporary ”。例如::
37
38  # echo "temporary write back" > cache_type
39