Kconfig 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Block device driver configuration
  4. #
  5. menuconfig MD
  6. bool "Multiple devices driver support (RAID and LVM)"
  7. depends on BLOCK
  8. select SRCU
  9. help
  10. Support multiple physical spindles through a single logical device.
  11. Required for RAID and logical volume management.
  12. if MD
  13. config BLK_DEV_MD
  14. tristate "RAID support"
  15. ---help---
  16. This driver lets you combine several hard disk partitions into one
  17. logical block device. This can be used to simply append one
  18. partition to another one or to combine several redundant hard disks
  19. into a RAID1/4/5 device so as to provide protection against hard
  20. disk failures. This is called "Software RAID" since the combining of
  21. the partitions is done by the kernel. "Hardware RAID" means that the
  22. combining is done by a dedicated controller; if you have such a
  23. controller, you do not need to say Y here.
  24. More information about Software RAID on Linux is contained in the
  25. Software RAID mini-HOWTO, available from
  26. <http://www.tldp.org/docs.html#howto>. There you will also learn
  27. where to get the supporting user space utilities raidtools.
  28. If unsure, say N.
  29. config MD_AUTODETECT
  30. bool "Autodetect RAID arrays during kernel boot"
  31. depends on BLK_DEV_MD=y
  32. default y
  33. ---help---
  34. If you say Y here, then the kernel will try to autodetect raid
  35. arrays as part of its boot process.
  36. If you don't use raid and say Y, this autodetection can cause
  37. a several-second delay in the boot time due to various
  38. synchronisation steps that are part of this step.
  39. If unsure, say Y.
  40. config MD_LINEAR
  41. tristate "Linear (append) mode"
  42. depends on BLK_DEV_MD
  43. ---help---
  44. If you say Y here, then your multiple devices driver will be able to
  45. use the so-called linear mode, i.e. it will combine the hard disk
  46. partitions by simply appending one to the other.
  47. To compile this as a module, choose M here: the module
  48. will be called linear.
  49. If unsure, say Y.
  50. config MD_RAID0
  51. tristate "RAID-0 (striping) mode"
  52. depends on BLK_DEV_MD
  53. ---help---
  54. If you say Y here, then your multiple devices driver will be able to
  55. use the so-called raid0 mode, i.e. it will combine the hard disk
  56. partitions into one logical device in such a fashion as to fill them
  57. up evenly, one chunk here and one chunk there. This will increase
  58. the throughput rate if the partitions reside on distinct disks.
  59. Information about Software RAID on Linux is contained in the
  60. Software-RAID mini-HOWTO, available from
  61. <http://www.tldp.org/docs.html#howto>. There you will also
  62. learn where to get the supporting user space utilities raidtools.
  63. To compile this as a module, choose M here: the module
  64. will be called raid0.
  65. If unsure, say Y.
  66. config MD_RAID1
  67. tristate "RAID-1 (mirroring) mode"
  68. depends on BLK_DEV_MD
  69. ---help---
  70. A RAID-1 set consists of several disk drives which are exact copies
  71. of each other. In the event of a mirror failure, the RAID driver
  72. will continue to use the operational mirrors in the set, providing
  73. an error free MD (multiple device) to the higher levels of the
  74. kernel. In a set with N drives, the available space is the capacity
  75. of a single drive, and the set protects against a failure of (N - 1)
  76. drives.
  77. Information about Software RAID on Linux is contained in the
  78. Software-RAID mini-HOWTO, available from
  79. <http://www.tldp.org/docs.html#howto>. There you will also
  80. learn where to get the supporting user space utilities raidtools.
  81. If you want to use such a RAID-1 set, say Y. To compile this code
  82. as a module, choose M here: the module will be called raid1.
  83. If unsure, say Y.
  84. config MD_RAID10
  85. tristate "RAID-10 (mirrored striping) mode"
  86. depends on BLK_DEV_MD
  87. ---help---
  88. RAID-10 provides a combination of striping (RAID-0) and
  89. mirroring (RAID-1) with easier configuration and more flexible
  90. layout.
  91. Unlike RAID-0, but like RAID-1, RAID-10 requires all devices to
  92. be the same size (or at least, only as much as the smallest device
  93. will be used).
  94. RAID-10 provides a variety of layouts that provide different levels
  95. of redundancy and performance.
  96. RAID-10 requires mdadm-1.7.0 or later, available at:
  97. https://www.kernel.org/pub/linux/utils/raid/mdadm/
  98. If unsure, say Y.
  99. config MD_RAID456
  100. tristate "RAID-4/RAID-5/RAID-6 mode"
  101. depends on BLK_DEV_MD
  102. select RAID6_PQ
  103. select LIBCRC32C
  104. select ASYNC_MEMCPY
  105. select ASYNC_XOR
  106. select ASYNC_PQ
  107. select ASYNC_RAID6_RECOV
  108. ---help---
  109. A RAID-5 set of N drives with a capacity of C MB per drive provides
  110. the capacity of C * (N - 1) MB, and protects against a failure
  111. of a single drive. For a given sector (row) number, (N - 1) drives
  112. contain data sectors, and one drive contains the parity protection.
  113. For a RAID-4 set, the parity blocks are present on a single drive,
  114. while a RAID-5 set distributes the parity across the drives in one
  115. of the available parity distribution methods.
  116. A RAID-6 set of N drives with a capacity of C MB per drive
  117. provides the capacity of C * (N - 2) MB, and protects
  118. against a failure of any two drives. For a given sector
  119. (row) number, (N - 2) drives contain data sectors, and two
  120. drives contains two independent redundancy syndromes. Like
  121. RAID-5, RAID-6 distributes the syndromes across the drives
  122. in one of the available parity distribution methods.
  123. Information about Software RAID on Linux is contained in the
  124. Software-RAID mini-HOWTO, available from
  125. <http://www.tldp.org/docs.html#howto>. There you will also
  126. learn where to get the supporting user space utilities raidtools.
  127. If you want to use such a RAID-4/RAID-5/RAID-6 set, say Y. To
  128. compile this code as a module, choose M here: the module
  129. will be called raid456.
  130. If unsure, say Y.
  131. config MD_MULTIPATH
  132. tristate "Multipath I/O support"
  133. depends on BLK_DEV_MD
  134. help
  135. MD_MULTIPATH provides a simple multi-path personality for use
  136. the MD framework. It is not under active development. New
  137. projects should consider using DM_MULTIPATH which has more
  138. features and more testing.
  139. If unsure, say N.
  140. config MD_FAULTY
  141. tristate "Faulty test module for MD"
  142. depends on BLK_DEV_MD
  143. help
  144. The "faulty" module allows for a block device that occasionally returns
  145. read or write errors. It is useful for testing.
  146. In unsure, say N.
  147. config MD_CLUSTER
  148. tristate "Cluster Support for MD"
  149. depends on BLK_DEV_MD
  150. depends on DLM
  151. default n
  152. ---help---
  153. Clustering support for MD devices. This enables locking and
  154. synchronization across multiple systems on the cluster, so all
  155. nodes in the cluster can access the MD devices simultaneously.
  156. This brings the redundancy (and uptime) of RAID levels across the
  157. nodes of the cluster. Currently, it can work with raid1 and raid10
  158. (limited support).
  159. If unsure, say N.
  160. source "drivers/md/bcache/Kconfig"
  161. config BLK_DEV_DM_BUILTIN
  162. bool
  163. config BLK_DEV_DM
  164. tristate "Device mapper support"
  165. select BLK_DEV_DM_BUILTIN
  166. depends on DAX || DAX=n
  167. ---help---
  168. Device-mapper is a low level volume manager. It works by allowing
  169. people to specify mappings for ranges of logical sectors. Various
  170. mapping types are available, in addition people may write their own
  171. modules containing custom mappings if they wish.
  172. Higher level volume managers such as LVM2 use this driver.
  173. To compile this as a module, choose M here: the module will be
  174. called dm-mod.
  175. If unsure, say N.
  176. config DM_DEBUG
  177. bool "Device mapper debugging support"
  178. depends on BLK_DEV_DM
  179. ---help---
  180. Enable this for messages that may help debug device-mapper problems.
  181. If unsure, say N.
  182. config DM_BUFIO
  183. tristate
  184. depends on BLK_DEV_DM
  185. ---help---
  186. This interface allows you to do buffered I/O on a device and acts
  187. as a cache, holding recently-read blocks in memory and performing
  188. delayed writes.
  189. config DM_DEBUG_BLOCK_MANAGER_LOCKING
  190. bool "Block manager locking"
  191. depends on DM_BUFIO
  192. ---help---
  193. Block manager locking can catch various metadata corruption issues.
  194. If unsure, say N.
  195. config DM_DEBUG_BLOCK_STACK_TRACING
  196. bool "Keep stack trace of persistent data block lock holders"
  197. depends on STACKTRACE_SUPPORT && DM_DEBUG_BLOCK_MANAGER_LOCKING
  198. select STACKTRACE
  199. ---help---
  200. Enable this for messages that may help debug problems with the
  201. block manager locking used by thin provisioning and caching.
  202. If unsure, say N.
  203. config DM_BIO_PRISON
  204. tristate
  205. depends on BLK_DEV_DM
  206. ---help---
  207. Some bio locking schemes used by other device-mapper targets
  208. including thin provisioning.
  209. source "drivers/md/persistent-data/Kconfig"
  210. config DM_UNSTRIPED
  211. tristate "Unstriped target"
  212. depends on BLK_DEV_DM
  213. ---help---
  214. Unstripes I/O so it is issued solely on a single drive in a HW
  215. RAID0 or dm-striped target.
  216. config DM_CRYPT
  217. tristate "Crypt target support"
  218. depends on BLK_DEV_DM
  219. select CRYPTO
  220. select CRYPTO_CBC
  221. select CRYPTO_ESSIV
  222. ---help---
  223. This device-mapper target allows you to create a device that
  224. transparently encrypts the data on it. You'll need to activate
  225. the ciphers you're going to use in the cryptoapi configuration.
  226. For further information on dm-crypt and userspace tools see:
  227. <https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt>
  228. To compile this code as a module, choose M here: the module will
  229. be called dm-crypt.
  230. If unsure, say N.
  231. config DM_SNAPSHOT
  232. tristate "Snapshot target"
  233. depends on BLK_DEV_DM
  234. select DM_BUFIO
  235. ---help---
  236. Allow volume managers to take writable snapshots of a device.
  237. config DM_THIN_PROVISIONING
  238. tristate "Thin provisioning target"
  239. depends on BLK_DEV_DM
  240. select DM_PERSISTENT_DATA
  241. select DM_BIO_PRISON
  242. ---help---
  243. Provides thin provisioning and snapshots that share a data store.
  244. config DM_CACHE
  245. tristate "Cache target (EXPERIMENTAL)"
  246. depends on BLK_DEV_DM
  247. default n
  248. select DM_PERSISTENT_DATA
  249. select DM_BIO_PRISON
  250. ---help---
  251. dm-cache attempts to improve performance of a block device by
  252. moving frequently used data to a smaller, higher performance
  253. device. Different 'policy' plugins can be used to change the
  254. algorithms used to select which blocks are promoted, demoted,
  255. cleaned etc. It supports writeback and writethrough modes.
  256. config DM_CACHE_SMQ
  257. tristate "Stochastic MQ Cache Policy (EXPERIMENTAL)"
  258. depends on DM_CACHE
  259. default y
  260. ---help---
  261. A cache policy that uses a multiqueue ordered by recent hits
  262. to select which blocks should be promoted and demoted.
  263. This is meant to be a general purpose policy. It prioritises
  264. reads over writes. This SMQ policy (vs MQ) offers the promise
  265. of less memory utilization, improved performance and increased
  266. adaptability in the face of changing workloads.
  267. config DM_WRITECACHE
  268. tristate "Writecache target"
  269. depends on BLK_DEV_DM
  270. ---help---
  271. The writecache target caches writes on persistent memory or SSD.
  272. It is intended for databases or other programs that need extremely
  273. low commit latency.
  274. The writecache target doesn't cache reads because reads are supposed
  275. to be cached in standard RAM.
  276. config DM_ERA
  277. tristate "Era target (EXPERIMENTAL)"
  278. depends on BLK_DEV_DM
  279. default n
  280. select DM_PERSISTENT_DATA
  281. select DM_BIO_PRISON
  282. ---help---
  283. dm-era tracks which parts of a block device are written to
  284. over time. Useful for maintaining cache coherency when using
  285. vendor snapshots.
  286. config DM_CLONE
  287. tristate "Clone target (EXPERIMENTAL)"
  288. depends on BLK_DEV_DM
  289. default n
  290. select DM_PERSISTENT_DATA
  291. ---help---
  292. dm-clone produces a one-to-one copy of an existing, read-only source
  293. device into a writable destination device. The cloned device is
  294. visible/mountable immediately and the copy of the source device to the
  295. destination device happens in the background, in parallel with user
  296. I/O.
  297. If unsure, say N.
  298. config DM_MIRROR
  299. tristate "Mirror target"
  300. depends on BLK_DEV_DM
  301. ---help---
  302. Allow volume managers to mirror logical volumes, also
  303. needed for live data migration tools such as 'pvmove'.
  304. config DM_LOG_USERSPACE
  305. tristate "Mirror userspace logging"
  306. depends on DM_MIRROR && NET
  307. select CONNECTOR
  308. ---help---
  309. The userspace logging module provides a mechanism for
  310. relaying the dm-dirty-log API to userspace. Log designs
  311. which are more suited to userspace implementation (e.g.
  312. shared storage logs) or experimental logs can be implemented
  313. by leveraging this framework.
  314. config DM_RAID
  315. tristate "RAID 1/4/5/6/10 target"
  316. depends on BLK_DEV_DM
  317. select MD_RAID0
  318. select MD_RAID1
  319. select MD_RAID10
  320. select MD_RAID456
  321. select BLK_DEV_MD
  322. ---help---
  323. A dm target that supports RAID1, RAID10, RAID4, RAID5 and RAID6 mappings
  324. A RAID-5 set of N drives with a capacity of C MB per drive provides
  325. the capacity of C * (N - 1) MB, and protects against a failure
  326. of a single drive. For a given sector (row) number, (N - 1) drives
  327. contain data sectors, and one drive contains the parity protection.
  328. For a RAID-4 set, the parity blocks are present on a single drive,
  329. while a RAID-5 set distributes the parity across the drives in one
  330. of the available parity distribution methods.
  331. A RAID-6 set of N drives with a capacity of C MB per drive
  332. provides the capacity of C * (N - 2) MB, and protects
  333. against a failure of any two drives. For a given sector
  334. (row) number, (N - 2) drives contain data sectors, and two
  335. drives contains two independent redundancy syndromes. Like
  336. RAID-5, RAID-6 distributes the syndromes across the drives
  337. in one of the available parity distribution methods.
  338. config DM_ZERO
  339. tristate "Zero target"
  340. depends on BLK_DEV_DM
  341. ---help---
  342. A target that discards writes, and returns all zeroes for
  343. reads. Useful in some recovery situations.
  344. config DM_MULTIPATH
  345. tristate "Multipath target"
  346. depends on BLK_DEV_DM
  347. # nasty syntax but means make DM_MULTIPATH independent
  348. # of SCSI_DH if the latter isn't defined but if
  349. # it is, DM_MULTIPATH must depend on it. We get a build
  350. # error if SCSI_DH=m and DM_MULTIPATH=y
  351. depends on !SCSI_DH || SCSI
  352. ---help---
  353. Allow volume managers to support multipath hardware.
  354. config DM_MULTIPATH_QL
  355. tristate "I/O Path Selector based on the number of in-flight I/Os"
  356. depends on DM_MULTIPATH
  357. ---help---
  358. This path selector is a dynamic load balancer which selects
  359. the path with the least number of in-flight I/Os.
  360. If unsure, say N.
  361. config DM_MULTIPATH_ST
  362. tristate "I/O Path Selector based on the service time"
  363. depends on DM_MULTIPATH
  364. ---help---
  365. This path selector is a dynamic load balancer which selects
  366. the path expected to complete the incoming I/O in the shortest
  367. time.
  368. If unsure, say N.
  369. config DM_DELAY
  370. tristate "I/O delaying target"
  371. depends on BLK_DEV_DM
  372. ---help---
  373. A target that delays reads and/or writes and can send
  374. them to different devices. Useful for testing.
  375. If unsure, say N.
  376. config DM_DUST
  377. tristate "Bad sector simulation target"
  378. depends on BLK_DEV_DM
  379. ---help---
  380. A target that simulates bad sector behavior.
  381. Useful for testing.
  382. If unsure, say N.
  383. config DM_INIT
  384. bool "DM \"dm-mod.create=\" parameter support"
  385. depends on BLK_DEV_DM=y
  386. ---help---
  387. Enable "dm-mod.create=" parameter to create mapped devices at init time.
  388. This option is useful to allow mounting rootfs without requiring an
  389. initramfs.
  390. See Documentation/admin-guide/device-mapper/dm-init.rst for dm-mod.create="..."
  391. format.
  392. If unsure, say N.
  393. config DM_UEVENT
  394. bool "DM uevents"
  395. depends on BLK_DEV_DM
  396. ---help---
  397. Generate udev events for DM events.
  398. config DM_FLAKEY
  399. tristate "Flakey target"
  400. depends on BLK_DEV_DM
  401. ---help---
  402. A target that intermittently fails I/O for debugging purposes.
  403. config DM_VERITY
  404. tristate "Verity target support"
  405. depends on BLK_DEV_DM
  406. select CRYPTO
  407. select CRYPTO_HASH
  408. select DM_BUFIO
  409. ---help---
  410. This device-mapper target creates a read-only device that
  411. transparently validates the data on one underlying device against
  412. a pre-generated tree of cryptographic checksums stored on a second
  413. device.
  414. You'll need to activate the digests you're going to use in the
  415. cryptoapi configuration.
  416. To compile this code as a module, choose M here: the module will
  417. be called dm-verity.
  418. If unsure, say N.
  419. config DM_VERITY_VERIFY_ROOTHASH_SIG
  420. def_bool n
  421. bool "Verity data device root hash signature verification support"
  422. depends on DM_VERITY
  423. select SYSTEM_DATA_VERIFICATION
  424. help
  425. Add ability for dm-verity device to be validated if the
  426. pre-generated tree of cryptographic checksums passed has a pkcs#7
  427. signature file that can validate the roothash of the tree.
  428. If unsure, say N.
  429. config DM_VERITY_FEC
  430. bool "Verity forward error correction support"
  431. depends on DM_VERITY
  432. select REED_SOLOMON
  433. select REED_SOLOMON_DEC8
  434. ---help---
  435. Add forward error correction support to dm-verity. This option
  436. makes it possible to use pre-generated error correction data to
  437. recover from corrupted blocks.
  438. If unsure, say N.
  439. config DM_SWITCH
  440. tristate "Switch target support (EXPERIMENTAL)"
  441. depends on BLK_DEV_DM
  442. ---help---
  443. This device-mapper target creates a device that supports an arbitrary
  444. mapping of fixed-size regions of I/O across a fixed set of paths.
  445. The path used for any specific region can be switched dynamically
  446. by sending the target a message.
  447. To compile this code as a module, choose M here: the module will
  448. be called dm-switch.
  449. If unsure, say N.
  450. config DM_LOG_WRITES
  451. tristate "Log writes target support"
  452. depends on BLK_DEV_DM
  453. ---help---
  454. This device-mapper target takes two devices, one device to use
  455. normally, one to log all write operations done to the first device.
  456. This is for use by file system developers wishing to verify that
  457. their fs is writing a consistent file system at all times by allowing
  458. them to replay the log in a variety of ways and to check the
  459. contents.
  460. To compile this code as a module, choose M here: the module will
  461. be called dm-log-writes.
  462. If unsure, say N.
  463. config DM_INTEGRITY
  464. tristate "Integrity target support"
  465. depends on BLK_DEV_DM
  466. select BLK_DEV_INTEGRITY
  467. select DM_BUFIO
  468. select CRYPTO
  469. select CRYPTO_SKCIPHER
  470. select ASYNC_XOR
  471. ---help---
  472. This device-mapper target emulates a block device that has
  473. additional per-sector tags that can be used for storing
  474. integrity information.
  475. This integrity target is used with the dm-crypt target to
  476. provide authenticated disk encryption or it can be used
  477. standalone.
  478. To compile this code as a module, choose M here: the module will
  479. be called dm-integrity.
  480. config DM_ZONED
  481. tristate "Drive-managed zoned block device target support"
  482. depends on BLK_DEV_DM
  483. depends on BLK_DEV_ZONED
  484. ---help---
  485. This device-mapper target takes a host-managed or host-aware zoned
  486. block device and exposes most of its capacity as a regular block
  487. device (drive-managed zoned block device) without any write
  488. constraints. This is mainly intended for use with file systems that
  489. do not natively support zoned block devices but still want to
  490. benefit from the increased capacity offered by SMR disks. Other uses
  491. by applications using raw block devices (for example object stores)
  492. are also possible.
  493. To compile this code as a module, choose M here: the module will
  494. be called dm-zoned.
  495. If unsure, say N.
  496. endif # MD