1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# Block device driver configuration 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 6afd44034SJan Engelhardtmenuconfig MD 71da177e4SLinus Torvalds bool "Multiple devices driver support (RAID and LVM)" 8afd44034SJan Engelhardt depends on BLOCK 983fe27eaSPranith Kumar select SRCU 101da177e4SLinus Torvalds help 111da177e4SLinus Torvalds Support multiple physical spindles through a single logical device. 121da177e4SLinus Torvalds Required for RAID and logical volume management. 131da177e4SLinus Torvalds 14afd44034SJan Engelhardtif MD 15afd44034SJan Engelhardt 161da177e4SLinus Torvaldsconfig BLK_DEV_MD 171da177e4SLinus Torvalds tristate "RAID support" 18a7f7f624SMasahiro Yamada help 191da177e4SLinus Torvalds This driver lets you combine several hard disk partitions into one 201da177e4SLinus Torvalds logical block device. This can be used to simply append one 211da177e4SLinus Torvalds partition to another one or to combine several redundant hard disks 221da177e4SLinus Torvalds into a RAID1/4/5 device so as to provide protection against hard 231da177e4SLinus Torvalds disk failures. This is called "Software RAID" since the combining of 241da177e4SLinus Torvalds the partitions is done by the kernel. "Hardware RAID" means that the 251da177e4SLinus Torvalds combining is done by a dedicated controller; if you have such a 261da177e4SLinus Torvalds controller, you do not need to say Y here. 271da177e4SLinus Torvalds 281da177e4SLinus Torvalds More information about Software RAID on Linux is contained in the 291da177e4SLinus Torvalds Software RAID mini-HOWTO, available from 306f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also learn 311da177e4SLinus Torvalds where to get the supporting user space utilities raidtools. 321da177e4SLinus Torvalds 331da177e4SLinus Torvalds If unsure, say N. 341da177e4SLinus Torvalds 35a364092aSArjan van de Venconfig MD_AUTODETECT 36a364092aSArjan van de Ven bool "Autodetect RAID arrays during kernel boot" 37ce52aebdSAlan Jenkins depends on BLK_DEV_MD=y 38a364092aSArjan van de Ven default y 39a7f7f624SMasahiro Yamada help 40a364092aSArjan van de Ven If you say Y here, then the kernel will try to autodetect raid 41a364092aSArjan van de Ven arrays as part of its boot process. 42a364092aSArjan van de Ven 43a364092aSArjan van de Ven If you don't use raid and say Y, this autodetection can cause 44a364092aSArjan van de Ven a several-second delay in the boot time due to various 45a364092aSArjan van de Ven synchronisation steps that are part of this step. 46a364092aSArjan van de Ven 47a364092aSArjan van de Ven If unsure, say Y. 48a364092aSArjan van de Ven 491da177e4SLinus Torvaldsconfig MD_LINEAR 50*608f52e3SGuoqing Jiang tristate "Linear (append) mode (deprecated)" 511da177e4SLinus Torvalds depends on BLK_DEV_MD 52a7f7f624SMasahiro Yamada help 531da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 541da177e4SLinus Torvalds use the so-called linear mode, i.e. it will combine the hard disk 551da177e4SLinus Torvalds partitions by simply appending one to the other. 561da177e4SLinus Torvalds 571da177e4SLinus Torvalds To compile this as a module, choose M here: the module 581da177e4SLinus Torvalds will be called linear. 591da177e4SLinus Torvalds 601da177e4SLinus Torvalds If unsure, say Y. 611da177e4SLinus Torvalds 621da177e4SLinus Torvaldsconfig MD_RAID0 631da177e4SLinus Torvalds tristate "RAID-0 (striping) mode" 641da177e4SLinus Torvalds depends on BLK_DEV_MD 65a7f7f624SMasahiro Yamada help 661da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 671da177e4SLinus Torvalds use the so-called raid0 mode, i.e. it will combine the hard disk 681da177e4SLinus Torvalds partitions into one logical device in such a fashion as to fill them 691da177e4SLinus Torvalds up evenly, one chunk here and one chunk there. This will increase 701da177e4SLinus Torvalds the throughput rate if the partitions reside on distinct disks. 711da177e4SLinus Torvalds 721da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 731da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 746f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also 751da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 761da177e4SLinus Torvalds 771da177e4SLinus Torvalds To compile this as a module, choose M here: the module 781da177e4SLinus Torvalds will be called raid0. 791da177e4SLinus Torvalds 801da177e4SLinus Torvalds If unsure, say Y. 811da177e4SLinus Torvalds 821da177e4SLinus Torvaldsconfig MD_RAID1 831da177e4SLinus Torvalds tristate "RAID-1 (mirroring) mode" 841da177e4SLinus Torvalds depends on BLK_DEV_MD 85a7f7f624SMasahiro Yamada help 861da177e4SLinus Torvalds A RAID-1 set consists of several disk drives which are exact copies 871da177e4SLinus Torvalds of each other. In the event of a mirror failure, the RAID driver 881da177e4SLinus Torvalds will continue to use the operational mirrors in the set, providing 891da177e4SLinus Torvalds an error free MD (multiple device) to the higher levels of the 901da177e4SLinus Torvalds kernel. In a set with N drives, the available space is the capacity 911da177e4SLinus Torvalds of a single drive, and the set protects against a failure of (N - 1) 921da177e4SLinus Torvalds drives. 931da177e4SLinus Torvalds 941da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 951da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 966f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also 971da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 981da177e4SLinus Torvalds 991da177e4SLinus Torvalds If you want to use such a RAID-1 set, say Y. To compile this code 1001da177e4SLinus Torvalds as a module, choose M here: the module will be called raid1. 1011da177e4SLinus Torvalds 1021da177e4SLinus Torvalds If unsure, say Y. 1031da177e4SLinus Torvalds 1041da177e4SLinus Torvaldsconfig MD_RAID10 10508fb730cSNeilBrown tristate "RAID-10 (mirrored striping) mode" 10608fb730cSNeilBrown depends on BLK_DEV_MD 107a7f7f624SMasahiro Yamada help 1081da177e4SLinus Torvalds RAID-10 provides a combination of striping (RAID-0) and 1094d2554d0SJustin Piszcz mirroring (RAID-1) with easier configuration and more flexible 1101da177e4SLinus Torvalds layout. 1111da177e4SLinus Torvalds Unlike RAID-0, but like RAID-1, RAID-10 requires all devices to 1121da177e4SLinus Torvalds be the same size (or at least, only as much as the smallest device 1131da177e4SLinus Torvalds will be used). 1141da177e4SLinus Torvalds RAID-10 provides a variety of layouts that provide different levels 1151da177e4SLinus Torvalds of redundancy and performance. 1161da177e4SLinus Torvalds 1171da177e4SLinus Torvalds RAID-10 requires mdadm-1.7.0 or later, available at: 1181da177e4SLinus Torvalds 1194f6cce39SSeongJae Park https://www.kernel.org/pub/linux/utils/raid/mdadm/ 1201da177e4SLinus Torvalds 1211da177e4SLinus Torvalds If unsure, say Y. 1221da177e4SLinus Torvalds 12316a53eccSNeilBrownconfig MD_RAID456 12416a53eccSNeilBrown tristate "RAID-4/RAID-5/RAID-6 mode" 1251da177e4SLinus Torvalds depends on BLK_DEV_MD 126f5e70d0fSDavid Woodhouse select RAID6_PQ 12714f09e2fSArnd Bergmann select LIBCRC32C 1289bc89cd8SDan Williams select ASYNC_MEMCPY 1299bc89cd8SDan Williams select ASYNC_XOR 130ac6b53b6SDan Williams select ASYNC_PQ 131ac6b53b6SDan Williams select ASYNC_RAID6_RECOV 132a7f7f624SMasahiro Yamada help 1331da177e4SLinus Torvalds A RAID-5 set of N drives with a capacity of C MB per drive provides 1341da177e4SLinus Torvalds the capacity of C * (N - 1) MB, and protects against a failure 1351da177e4SLinus Torvalds of a single drive. For a given sector (row) number, (N - 1) drives 1361da177e4SLinus Torvalds contain data sectors, and one drive contains the parity protection. 1371da177e4SLinus Torvalds For a RAID-4 set, the parity blocks are present on a single drive, 1381da177e4SLinus Torvalds while a RAID-5 set distributes the parity across the drives in one 1391da177e4SLinus Torvalds of the available parity distribution methods. 1401da177e4SLinus Torvalds 14116a53eccSNeilBrown A RAID-6 set of N drives with a capacity of C MB per drive 14216a53eccSNeilBrown provides the capacity of C * (N - 2) MB, and protects 14316a53eccSNeilBrown against a failure of any two drives. For a given sector 14416a53eccSNeilBrown (row) number, (N - 2) drives contain data sectors, and two 14516a53eccSNeilBrown drives contains two independent redundancy syndromes. Like 14616a53eccSNeilBrown RAID-5, RAID-6 distributes the syndromes across the drives 14716a53eccSNeilBrown in one of the available parity distribution methods. 14816a53eccSNeilBrown 1491da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 1501da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 1516f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also 1521da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 1531da177e4SLinus Torvalds 15416a53eccSNeilBrown If you want to use such a RAID-4/RAID-5/RAID-6 set, say Y. To 1551da177e4SLinus Torvalds compile this code as a module, choose M here: the module 15616a53eccSNeilBrown will be called raid456. 1571da177e4SLinus Torvalds 1581da177e4SLinus Torvalds If unsure, say Y. 1591da177e4SLinus Torvalds 1601da177e4SLinus Torvaldsconfig MD_MULTIPATH 161*608f52e3SGuoqing Jiang tristate "Multipath I/O support (deprecated)" 1621da177e4SLinus Torvalds depends on BLK_DEV_MD 1631da177e4SLinus Torvalds help 16493bd89a6SNeilBrown MD_MULTIPATH provides a simple multi-path personality for use 16593bd89a6SNeilBrown the MD framework. It is not under active development. New 16693bd89a6SNeilBrown projects should consider using DM_MULTIPATH which has more 16793bd89a6SNeilBrown features and more testing. 1681da177e4SLinus Torvalds 1691da177e4SLinus Torvalds If unsure, say N. 1701da177e4SLinus Torvalds 1711da177e4SLinus Torvaldsconfig MD_FAULTY 172*608f52e3SGuoqing Jiang tristate "Faulty test module for MD (deprecated)" 1731da177e4SLinus Torvalds depends on BLK_DEV_MD 1741da177e4SLinus Torvalds help 1751da177e4SLinus Torvalds The "faulty" module allows for a block device that occasionally returns 1761da177e4SLinus Torvalds read or write errors. It is useful for testing. 1771da177e4SLinus Torvalds 1781da177e4SLinus Torvalds In unsure, say N. 1791da177e4SLinus Torvalds 1808e854e9cSGoldwyn Rodrigues 1818e854e9cSGoldwyn Rodriguesconfig MD_CLUSTER 182f0e230adSGuoqing Jiang tristate "Cluster Support for MD" 1838e854e9cSGoldwyn Rodrigues depends on BLK_DEV_MD 1848e854e9cSGoldwyn Rodrigues depends on DLM 1858e854e9cSGoldwyn Rodrigues default n 186a7f7f624SMasahiro Yamada help 1878e854e9cSGoldwyn Rodrigues Clustering support for MD devices. This enables locking and 1888e854e9cSGoldwyn Rodrigues synchronization across multiple systems on the cluster, so all 1898e854e9cSGoldwyn Rodrigues nodes in the cluster can access the MD devices simultaneously. 1908e854e9cSGoldwyn Rodrigues 1918e854e9cSGoldwyn Rodrigues This brings the redundancy (and uptime) of RAID levels across the 192f0e230adSGuoqing Jiang nodes of the cluster. Currently, it can work with raid1 and raid10 193f0e230adSGuoqing Jiang (limited support). 1948e854e9cSGoldwyn Rodrigues 1958e854e9cSGoldwyn Rodrigues If unsure, say N. 1968e854e9cSGoldwyn Rodrigues 197cafe5635SKent Overstreetsource "drivers/md/bcache/Kconfig" 198cafe5635SKent Overstreet 1992995fa78SMikulas Patockaconfig BLK_DEV_DM_BUILTIN 2006341e62bSChristoph Jaeger bool 2012995fa78SMikulas Patocka 2021da177e4SLinus Torvaldsconfig BLK_DEV_DM 2031da177e4SLinus Torvalds tristate "Device mapper support" 2042995fa78SMikulas Patocka select BLK_DEV_DM_BUILTIN 205976431b0SDan Williams depends on DAX || DAX=n 206a7f7f624SMasahiro Yamada help 2071da177e4SLinus Torvalds Device-mapper is a low level volume manager. It works by allowing 2081da177e4SLinus Torvalds people to specify mappings for ranges of logical sectors. Various 2091da177e4SLinus Torvalds mapping types are available, in addition people may write their own 2101da177e4SLinus Torvalds modules containing custom mappings if they wish. 2111da177e4SLinus Torvalds 2121da177e4SLinus Torvalds Higher level volume managers such as LVM2 use this driver. 2131da177e4SLinus Torvalds 2141da177e4SLinus Torvalds To compile this as a module, choose M here: the module will be 2151da177e4SLinus Torvalds called dm-mod. 2161da177e4SLinus Torvalds 2171da177e4SLinus Torvalds If unsure, say N. 2181da177e4SLinus Torvalds 219cc109201SBryn Reevesconfig DM_DEBUG 2206341e62bSChristoph Jaeger bool "Device mapper debugging support" 2210149e57fSAlasdair G Kergon depends on BLK_DEV_DM 222a7f7f624SMasahiro Yamada help 223cc109201SBryn Reeves Enable this for messages that may help debug device-mapper problems. 224cc109201SBryn Reeves 225cc109201SBryn Reeves If unsure, say N. 226cc109201SBryn Reeves 22795d402f0SMikulas Patockaconfig DM_BUFIO 22895d402f0SMikulas Patocka tristate 229d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 230a7f7f624SMasahiro Yamada help 23195d402f0SMikulas Patocka This interface allows you to do buffered I/O on a device and acts 23295d402f0SMikulas Patocka as a cache, holding recently-read blocks in memory and performing 23395d402f0SMikulas Patocka delayed writes. 23495d402f0SMikulas Patocka 2352e8ed711SJoe Thornberconfig DM_DEBUG_BLOCK_MANAGER_LOCKING 2362e8ed711SJoe Thornber bool "Block manager locking" 2372e8ed711SJoe Thornber depends on DM_BUFIO 238a7f7f624SMasahiro Yamada help 2392e8ed711SJoe Thornber Block manager locking can catch various metadata corruption issues. 2402e8ed711SJoe Thornber 2412e8ed711SJoe Thornber If unsure, say N. 2422e8ed711SJoe Thornber 24386bad0c7SMikulas Patockaconfig DM_DEBUG_BLOCK_STACK_TRACING 24486bad0c7SMikulas Patocka bool "Keep stack trace of persistent data block lock holders" 2452e8ed711SJoe Thornber depends on STACKTRACE_SUPPORT && DM_DEBUG_BLOCK_MANAGER_LOCKING 24686bad0c7SMikulas Patocka select STACKTRACE 247a7f7f624SMasahiro Yamada help 24886bad0c7SMikulas Patocka Enable this for messages that may help debug problems with the 24986bad0c7SMikulas Patocka block manager locking used by thin provisioning and caching. 25086bad0c7SMikulas Patocka 25186bad0c7SMikulas Patocka If unsure, say N. 2523f068040SMike Snitzer 2534f81a417SMike Snitzerconfig DM_BIO_PRISON 2544f81a417SMike Snitzer tristate 255d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 256a7f7f624SMasahiro Yamada help 2574f81a417SMike Snitzer Some bio locking schemes used by other device-mapper targets 2584f81a417SMike Snitzer including thin provisioning. 2594f81a417SMike Snitzer 260991d9fa0SJoe Thornbersource "drivers/md/persistent-data/Kconfig" 261991d9fa0SJoe Thornber 26218a5bf27SScott Bauerconfig DM_UNSTRIPED 26318a5bf27SScott Bauer tristate "Unstriped target" 26418a5bf27SScott Bauer depends on BLK_DEV_DM 265a7f7f624SMasahiro Yamada help 26618a5bf27SScott Bauer Unstripes I/O so it is issued solely on a single drive in a HW 26718a5bf27SScott Bauer RAID0 or dm-striped target. 26818a5bf27SScott Bauer 2691da177e4SLinus Torvaldsconfig DM_CRYPT 2701da177e4SLinus Torvalds tristate "Crypt target support" 2710149e57fSAlasdair G Kergon depends on BLK_DEV_DM 27227f5411aSDmitry Baryshkov depends on (ENCRYPTED_KEYS || ENCRYPTED_KEYS=n) 273363880c4SAhmad Fatoum depends on (TRUSTED_KEYS || TRUSTED_KEYS=n) 2741da177e4SLinus Torvalds select CRYPTO 2753263263fSHerbert Xu select CRYPTO_CBC 276a1a262b6SArd Biesheuvel select CRYPTO_ESSIV 277a7f7f624SMasahiro Yamada help 2781da177e4SLinus Torvalds This device-mapper target allows you to create a device that 2791da177e4SLinus Torvalds transparently encrypts the data on it. You'll need to activate 2801da177e4SLinus Torvalds the ciphers you're going to use in the cryptoapi configuration. 2811da177e4SLinus Torvalds 282cf352487SLoic Pefferkorn For further information on dm-crypt and userspace tools see: 2836ed443c0SBaruch Siach <https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt> 2841da177e4SLinus Torvalds 2851da177e4SLinus Torvalds To compile this code as a module, choose M here: the module will 2861da177e4SLinus Torvalds be called dm-crypt. 2871da177e4SLinus Torvalds 2881da177e4SLinus Torvalds If unsure, say N. 2891da177e4SLinus Torvalds 2901da177e4SLinus Torvaldsconfig DM_SNAPSHOT 2910149e57fSAlasdair G Kergon tristate "Snapshot target" 2920149e57fSAlasdair G Kergon depends on BLK_DEV_DM 29355494bf2SMikulas Patocka select DM_BUFIO 294a7f7f624SMasahiro Yamada help 2954d2554d0SJustin Piszcz Allow volume managers to take writable snapshots of a device. 2961da177e4SLinus Torvalds 297991d9fa0SJoe Thornberconfig DM_THIN_PROVISIONING 298d57916a0SAlasdair G Kergon tristate "Thin provisioning target" 299d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 300991d9fa0SJoe Thornber select DM_PERSISTENT_DATA 3014f81a417SMike Snitzer select DM_BIO_PRISON 302a7f7f624SMasahiro Yamada help 303991d9fa0SJoe Thornber Provides thin provisioning and snapshots that share a data store. 304991d9fa0SJoe Thornber 305c6b4fcbaSJoe Thornberconfig DM_CACHE 306c6b4fcbaSJoe Thornber tristate "Cache target (EXPERIMENTAL)" 307c6b4fcbaSJoe Thornber depends on BLK_DEV_DM 308c6b4fcbaSJoe Thornber default n 309c6b4fcbaSJoe Thornber select DM_PERSISTENT_DATA 310c6b4fcbaSJoe Thornber select DM_BIO_PRISON 311a7f7f624SMasahiro Yamada help 312c6b4fcbaSJoe Thornber dm-cache attempts to improve performance of a block device by 313c6b4fcbaSJoe Thornber moving frequently used data to a smaller, higher performance 314c6b4fcbaSJoe Thornber device. Different 'policy' plugins can be used to change the 315c6b4fcbaSJoe Thornber algorithms used to select which blocks are promoted, demoted, 316c6b4fcbaSJoe Thornber cleaned etc. It supports writeback and writethrough modes. 317c6b4fcbaSJoe Thornber 31866a63635SJoe Thornberconfig DM_CACHE_SMQ 31966a63635SJoe Thornber tristate "Stochastic MQ Cache Policy (EXPERIMENTAL)" 32066a63635SJoe Thornber depends on DM_CACHE 32166a63635SJoe Thornber default y 322a7f7f624SMasahiro Yamada help 32366a63635SJoe Thornber A cache policy that uses a multiqueue ordered by recent hits 32466a63635SJoe Thornber to select which blocks should be promoted and demoted. 32566a63635SJoe Thornber This is meant to be a general purpose policy. It prioritises 32666a63635SJoe Thornber reads over writes. This SMQ policy (vs MQ) offers the promise 32766a63635SJoe Thornber of less memory utilization, improved performance and increased 32866a63635SJoe Thornber adaptability in the face of changing workloads. 32966a63635SJoe Thornber 33048debafeSMikulas Patockaconfig DM_WRITECACHE 33148debafeSMikulas Patocka tristate "Writecache target" 33248debafeSMikulas Patocka depends on BLK_DEV_DM 333a7f7f624SMasahiro Yamada help 33448debafeSMikulas Patocka The writecache target caches writes on persistent memory or SSD. 33548debafeSMikulas Patocka It is intended for databases or other programs that need extremely 33648debafeSMikulas Patocka low commit latency. 33748debafeSMikulas Patocka 33848debafeSMikulas Patocka The writecache target doesn't cache reads because reads are supposed 33948debafeSMikulas Patocka to be cached in standard RAM. 34048debafeSMikulas Patocka 341d3c7b35cSHeinz Mauelshagenconfig DM_EBS 342d3c7b35cSHeinz Mauelshagen tristate "Emulated block size target (EXPERIMENTAL)" 343d3c7b35cSHeinz Mauelshagen depends on BLK_DEV_DM 344d3c7b35cSHeinz Mauelshagen select DM_BUFIO 345d3c7b35cSHeinz Mauelshagen help 346d3c7b35cSHeinz Mauelshagen dm-ebs emulates smaller logical block size on backing devices 347d3c7b35cSHeinz Mauelshagen with larger ones (e.g. 512 byte sectors on 4K native disks). 348d3c7b35cSHeinz Mauelshagen 349eec40579SJoe Thornberconfig DM_ERA 350eec40579SJoe Thornber tristate "Era target (EXPERIMENTAL)" 351eec40579SJoe Thornber depends on BLK_DEV_DM 352eec40579SJoe Thornber default n 353eec40579SJoe Thornber select DM_PERSISTENT_DATA 354eec40579SJoe Thornber select DM_BIO_PRISON 355a7f7f624SMasahiro Yamada help 356eec40579SJoe Thornber dm-era tracks which parts of a block device are written to 357eec40579SJoe Thornber over time. Useful for maintaining cache coherency when using 358eec40579SJoe Thornber vendor snapshots. 359eec40579SJoe Thornber 3607431b783SNikos Tsironisconfig DM_CLONE 3617431b783SNikos Tsironis tristate "Clone target (EXPERIMENTAL)" 3627431b783SNikos Tsironis depends on BLK_DEV_DM 3637431b783SNikos Tsironis default n 3647431b783SNikos Tsironis select DM_PERSISTENT_DATA 365a7f7f624SMasahiro Yamada help 3667431b783SNikos Tsironis dm-clone produces a one-to-one copy of an existing, read-only source 3677431b783SNikos Tsironis device into a writable destination device. The cloned device is 3687431b783SNikos Tsironis visible/mountable immediately and the copy of the source device to the 3697431b783SNikos Tsironis destination device happens in the background, in parallel with user 3707431b783SNikos Tsironis I/O. 3717431b783SNikos Tsironis 3727431b783SNikos Tsironis If unsure, say N. 3737431b783SNikos Tsironis 3741da177e4SLinus Torvaldsconfig DM_MIRROR 3750149e57fSAlasdair G Kergon tristate "Mirror target" 3760149e57fSAlasdair G Kergon depends on BLK_DEV_DM 377a7f7f624SMasahiro Yamada help 3781da177e4SLinus Torvalds Allow volume managers to mirror logical volumes, also 3791da177e4SLinus Torvalds needed for live data migration tools such as 'pvmove'. 3801da177e4SLinus Torvalds 3815442851eSMikulas Patockaconfig DM_LOG_USERSPACE 3825442851eSMikulas Patocka tristate "Mirror userspace logging" 3835442851eSMikulas Patocka depends on DM_MIRROR && NET 3845442851eSMikulas Patocka select CONNECTOR 385a7f7f624SMasahiro Yamada help 3865442851eSMikulas Patocka The userspace logging module provides a mechanism for 3875442851eSMikulas Patocka relaying the dm-dirty-log API to userspace. Log designs 3885442851eSMikulas Patocka which are more suited to userspace implementation (e.g. 3895442851eSMikulas Patocka shared storage logs) or experimental logs can be implemented 3905442851eSMikulas Patocka by leveraging this framework. 3915442851eSMikulas Patocka 3929d09e663SNeilBrownconfig DM_RAID 393d9f691c3SNeilBrown tristate "RAID 1/4/5/6/10 target" 394035220b3SAlasdair G Kergon depends on BLK_DEV_DM 3957b81ef8bSMikulas Patocka select MD_RAID0 396b12d437bSJonathan Brassow select MD_RAID1 397d9f691c3SNeilBrown select MD_RAID10 3989d09e663SNeilBrown select MD_RAID456 3999d09e663SNeilBrown select BLK_DEV_MD 400a7f7f624SMasahiro Yamada help 401d9f691c3SNeilBrown A dm target that supports RAID1, RAID10, RAID4, RAID5 and RAID6 mappings 4029d09e663SNeilBrown 4039d09e663SNeilBrown A RAID-5 set of N drives with a capacity of C MB per drive provides 4049d09e663SNeilBrown the capacity of C * (N - 1) MB, and protects against a failure 4059d09e663SNeilBrown of a single drive. For a given sector (row) number, (N - 1) drives 4069d09e663SNeilBrown contain data sectors, and one drive contains the parity protection. 4079d09e663SNeilBrown For a RAID-4 set, the parity blocks are present on a single drive, 4089d09e663SNeilBrown while a RAID-5 set distributes the parity across the drives in one 4099d09e663SNeilBrown of the available parity distribution methods. 4109d09e663SNeilBrown 4119d09e663SNeilBrown A RAID-6 set of N drives with a capacity of C MB per drive 4129d09e663SNeilBrown provides the capacity of C * (N - 2) MB, and protects 4139d09e663SNeilBrown against a failure of any two drives. For a given sector 4149d09e663SNeilBrown (row) number, (N - 2) drives contain data sectors, and two 4159d09e663SNeilBrown drives contains two independent redundancy syndromes. Like 4169d09e663SNeilBrown RAID-5, RAID-6 distributes the syndromes across the drives 4179d09e663SNeilBrown in one of the available parity distribution methods. 4189d09e663SNeilBrown 4191da177e4SLinus Torvaldsconfig DM_ZERO 4200149e57fSAlasdair G Kergon tristate "Zero target" 4210149e57fSAlasdair G Kergon depends on BLK_DEV_DM 422a7f7f624SMasahiro Yamada help 4231da177e4SLinus Torvalds A target that discards writes, and returns all zeroes for 4241da177e4SLinus Torvalds reads. Useful in some recovery situations. 4251da177e4SLinus Torvalds 4261da177e4SLinus Torvaldsconfig DM_MULTIPATH 4270149e57fSAlasdair G Kergon tristate "Multipath target" 4280149e57fSAlasdair G Kergon depends on BLK_DEV_DM 429fe9233fbSChandra Seetharaman # nasty syntax but means make DM_MULTIPATH independent 430fe9233fbSChandra Seetharaman # of SCSI_DH if the latter isn't defined but if 431fe9233fbSChandra Seetharaman # it is, DM_MULTIPATH must depend on it. We get a build 432fe9233fbSChandra Seetharaman # error if SCSI_DH=m and DM_MULTIPATH=y 433294ab783SChristoph Hellwig depends on !SCSI_DH || SCSI 434a7f7f624SMasahiro Yamada help 4351da177e4SLinus Torvalds Allow volume managers to support multipath hardware. 4361da177e4SLinus Torvalds 437fd5e0339SKiyoshi Uedaconfig DM_MULTIPATH_QL 438fd5e0339SKiyoshi Ueda tristate "I/O Path Selector based on the number of in-flight I/Os" 439fd5e0339SKiyoshi Ueda depends on DM_MULTIPATH 440a7f7f624SMasahiro Yamada help 441fd5e0339SKiyoshi Ueda This path selector is a dynamic load balancer which selects 442fd5e0339SKiyoshi Ueda the path with the least number of in-flight I/Os. 443fd5e0339SKiyoshi Ueda 444fd5e0339SKiyoshi Ueda If unsure, say N. 445fd5e0339SKiyoshi Ueda 446f392ba88SKiyoshi Uedaconfig DM_MULTIPATH_ST 447f392ba88SKiyoshi Ueda tristate "I/O Path Selector based on the service time" 448f392ba88SKiyoshi Ueda depends on DM_MULTIPATH 449a7f7f624SMasahiro Yamada help 450f392ba88SKiyoshi Ueda This path selector is a dynamic load balancer which selects 451f392ba88SKiyoshi Ueda the path expected to complete the incoming I/O in the shortest 452f392ba88SKiyoshi Ueda time. 453f392ba88SKiyoshi Ueda 454f392ba88SKiyoshi Ueda If unsure, say N. 455f392ba88SKiyoshi Ueda 4562613eab1SKhazhismel Kumykovconfig DM_MULTIPATH_HST 4572613eab1SKhazhismel Kumykov tristate "I/O Path Selector based on historical service time" 4582613eab1SKhazhismel Kumykov depends on DM_MULTIPATH 4592613eab1SKhazhismel Kumykov help 4602613eab1SKhazhismel Kumykov This path selector is a dynamic load balancer which selects 4612613eab1SKhazhismel Kumykov the path expected to complete the incoming I/O in the shortest 4622613eab1SKhazhismel Kumykov time by comparing estimated service time (based on historical 4632613eab1SKhazhismel Kumykov service time). 4642613eab1SKhazhismel Kumykov 4652613eab1SKhazhismel Kumykov If unsure, say N. 4662613eab1SKhazhismel Kumykov 467e4d2e82bSMike Christieconfig DM_MULTIPATH_IOA 468e4d2e82bSMike Christie tristate "I/O Path Selector based on CPU submission" 469e4d2e82bSMike Christie depends on DM_MULTIPATH 470e4d2e82bSMike Christie help 471e4d2e82bSMike Christie This path selector selects the path based on the CPU the IO is 472e4d2e82bSMike Christie executed on and the CPU to path mapping setup at path addition time. 473e4d2e82bSMike Christie 474e4d2e82bSMike Christie If unsure, say N. 475e4d2e82bSMike Christie 47626b9f228SHeinz Mauelshagenconfig DM_DELAY 477d57916a0SAlasdair G Kergon tristate "I/O delaying target" 478d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 479a7f7f624SMasahiro Yamada help 48026b9f228SHeinz Mauelshagen A target that delays reads and/or writes and can send 48126b9f228SHeinz Mauelshagen them to different devices. Useful for testing. 48226b9f228SHeinz Mauelshagen 48326b9f228SHeinz Mauelshagen If unsure, say N. 48426b9f228SHeinz Mauelshagen 485e4f3fabdSBryan Gurneyconfig DM_DUST 486e4f3fabdSBryan Gurney tristate "Bad sector simulation target" 487e4f3fabdSBryan Gurney depends on BLK_DEV_DM 488a7f7f624SMasahiro Yamada help 489e4f3fabdSBryan Gurney A target that simulates bad sector behavior. 490e4f3fabdSBryan Gurney Useful for testing. 491e4f3fabdSBryan Gurney 492e4f3fabdSBryan Gurney If unsure, say N. 493e4f3fabdSBryan Gurney 4946bbc923dSHelen Koikeconfig DM_INIT 4956bbc923dSHelen Koike bool "DM \"dm-mod.create=\" parameter support" 4966bbc923dSHelen Koike depends on BLK_DEV_DM=y 497a7f7f624SMasahiro Yamada help 4986bbc923dSHelen Koike Enable "dm-mod.create=" parameter to create mapped devices at init time. 4996bbc923dSHelen Koike This option is useful to allow mounting rootfs without requiring an 5006bbc923dSHelen Koike initramfs. 5016cf2a73cSMauro Carvalho Chehab See Documentation/admin-guide/device-mapper/dm-init.rst for dm-mod.create="..." 5026bbc923dSHelen Koike format. 5036bbc923dSHelen Koike 5046bbc923dSHelen Koike If unsure, say N. 5056bbc923dSHelen Koike 50651e5b2bdSMike Andersonconfig DM_UEVENT 507e0b215daSAlasdair G Kergon bool "DM uevents" 508e0b215daSAlasdair G Kergon depends on BLK_DEV_DM 509a7f7f624SMasahiro Yamada help 51051e5b2bdSMike Anderson Generate udev events for DM events. 51151e5b2bdSMike Anderson 5123407ef52SJosef Bacikconfig DM_FLAKEY 513d57916a0SAlasdair G Kergon tristate "Flakey target" 514d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 515a7f7f624SMasahiro Yamada help 5163407ef52SJosef Bacik A target that intermittently fails I/O for debugging purposes. 5173407ef52SJosef Bacik 518a4ffc152SMikulas Patockaconfig DM_VERITY 519d57916a0SAlasdair G Kergon tristate "Verity target support" 520d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 521a4ffc152SMikulas Patocka select CRYPTO 522a4ffc152SMikulas Patocka select CRYPTO_HASH 523a4ffc152SMikulas Patocka select DM_BUFIO 524a7f7f624SMasahiro Yamada help 525a4ffc152SMikulas Patocka This device-mapper target creates a read-only device that 526a4ffc152SMikulas Patocka transparently validates the data on one underlying device against 527a4ffc152SMikulas Patocka a pre-generated tree of cryptographic checksums stored on a second 528a4ffc152SMikulas Patocka device. 529a4ffc152SMikulas Patocka 530a4ffc152SMikulas Patocka You'll need to activate the digests you're going to use in the 531a4ffc152SMikulas Patocka cryptoapi configuration. 532a4ffc152SMikulas Patocka 533a4ffc152SMikulas Patocka To compile this code as a module, choose M here: the module will 534a4ffc152SMikulas Patocka be called dm-verity. 535a4ffc152SMikulas Patocka 536a4ffc152SMikulas Patocka If unsure, say N. 537a4ffc152SMikulas Patocka 53888cd3e6cSJaskaran Khuranaconfig DM_VERITY_VERIFY_ROOTHASH_SIG 53988cd3e6cSJaskaran Khurana def_bool n 54088cd3e6cSJaskaran Khurana bool "Verity data device root hash signature verification support" 54188cd3e6cSJaskaran Khurana depends on DM_VERITY 54288cd3e6cSJaskaran Khurana select SYSTEM_DATA_VERIFICATION 54388cd3e6cSJaskaran Khurana help 54488cd3e6cSJaskaran Khurana Add ability for dm-verity device to be validated if the 54588cd3e6cSJaskaran Khurana pre-generated tree of cryptographic checksums passed has a pkcs#7 54688cd3e6cSJaskaran Khurana signature file that can validate the roothash of the tree. 5474da8f8c8SMickaël Salaün 5484da8f8c8SMickaël Salaün By default, rely on the builtin trusted keyring. 5494da8f8c8SMickaël Salaün 5504da8f8c8SMickaël Salaün If unsure, say N. 5514da8f8c8SMickaël Salaün 5524da8f8c8SMickaël Salaünconfig DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING 5534da8f8c8SMickaël Salaün bool "Verity data device root hash signature verification with secondary keyring" 5544da8f8c8SMickaël Salaün depends on DM_VERITY_VERIFY_ROOTHASH_SIG 5554da8f8c8SMickaël Salaün depends on SECONDARY_TRUSTED_KEYRING 5564da8f8c8SMickaël Salaün help 5574da8f8c8SMickaël Salaün Rely on the secondary trusted keyring to verify dm-verity signatures. 55888cd3e6cSJaskaran Khurana 55988cd3e6cSJaskaran Khurana If unsure, say N. 56088cd3e6cSJaskaran Khurana 561a739ff3fSSami Tolvanenconfig DM_VERITY_FEC 562a739ff3fSSami Tolvanen bool "Verity forward error correction support" 563a739ff3fSSami Tolvanen depends on DM_VERITY 564a739ff3fSSami Tolvanen select REED_SOLOMON 565a739ff3fSSami Tolvanen select REED_SOLOMON_DEC8 566a7f7f624SMasahiro Yamada help 567a739ff3fSSami Tolvanen Add forward error correction support to dm-verity. This option 568a739ff3fSSami Tolvanen makes it possible to use pre-generated error correction data to 569a739ff3fSSami Tolvanen recover from corrupted blocks. 570a739ff3fSSami Tolvanen 571a739ff3fSSami Tolvanen If unsure, say N. 572a739ff3fSSami Tolvanen 5739d0eb0abSJim Ramsayconfig DM_SWITCH 5749d0eb0abSJim Ramsay tristate "Switch target support (EXPERIMENTAL)" 5759d0eb0abSJim Ramsay depends on BLK_DEV_DM 576a7f7f624SMasahiro Yamada help 5779d0eb0abSJim Ramsay This device-mapper target creates a device that supports an arbitrary 5789d0eb0abSJim Ramsay mapping of fixed-size regions of I/O across a fixed set of paths. 5799d0eb0abSJim Ramsay The path used for any specific region can be switched dynamically 5809d0eb0abSJim Ramsay by sending the target a message. 5819d0eb0abSJim Ramsay 5829d0eb0abSJim Ramsay To compile this code as a module, choose M here: the module will 5839d0eb0abSJim Ramsay be called dm-switch. 5849d0eb0abSJim Ramsay 5859d0eb0abSJim Ramsay If unsure, say N. 5869d0eb0abSJim Ramsay 5870e9cebe7SJosef Bacikconfig DM_LOG_WRITES 5880e9cebe7SJosef Bacik tristate "Log writes target support" 5890e9cebe7SJosef Bacik depends on BLK_DEV_DM 590a7f7f624SMasahiro Yamada help 5910e9cebe7SJosef Bacik This device-mapper target takes two devices, one device to use 5920e9cebe7SJosef Bacik normally, one to log all write operations done to the first device. 5930e9cebe7SJosef Bacik This is for use by file system developers wishing to verify that 59457d42487SGeert Uytterhoeven their fs is writing a consistent file system at all times by allowing 5950e9cebe7SJosef Bacik them to replay the log in a variety of ways and to check the 5960e9cebe7SJosef Bacik contents. 5970e9cebe7SJosef Bacik 5980e9cebe7SJosef Bacik To compile this code as a module, choose M here: the module will 5990e9cebe7SJosef Bacik be called dm-log-writes. 6000e9cebe7SJosef Bacik 6010e9cebe7SJosef Bacik If unsure, say N. 6020e9cebe7SJosef Bacik 6037eada909SMikulas Patockaconfig DM_INTEGRITY 6047ab84db6SMike Snitzer tristate "Integrity target support" 6057eada909SMikulas Patocka depends on BLK_DEV_DM 6067eada909SMikulas Patocka select BLK_DEV_INTEGRITY 6077eada909SMikulas Patocka select DM_BUFIO 6087eada909SMikulas Patocka select CRYPTO 609f7b347acSAnthony Iliopoulos select CRYPTO_SKCIPHER 6107eada909SMikulas Patocka select ASYNC_XOR 611a7f7f624SMasahiro Yamada help 6127ab84db6SMike Snitzer This device-mapper target emulates a block device that has 6137ab84db6SMike Snitzer additional per-sector tags that can be used for storing 6147ab84db6SMike Snitzer integrity information. 6157ab84db6SMike Snitzer 6167ab84db6SMike Snitzer This integrity target is used with the dm-crypt target to 6177ab84db6SMike Snitzer provide authenticated disk encryption or it can be used 6187ab84db6SMike Snitzer standalone. 6197ab84db6SMike Snitzer 6207ab84db6SMike Snitzer To compile this code as a module, choose M here: the module will 6217ab84db6SMike Snitzer be called dm-integrity. 6227ab84db6SMike Snitzer 6233b1a94c8SDamien Le Moalconfig DM_ZONED 6243b1a94c8SDamien Le Moal tristate "Drive-managed zoned block device target support" 6253b1a94c8SDamien Le Moal depends on BLK_DEV_DM 6263b1a94c8SDamien Le Moal depends on BLK_DEV_ZONED 627b690bd54SArnd Bergmann select CRC32 628a7f7f624SMasahiro Yamada help 6293b1a94c8SDamien Le Moal This device-mapper target takes a host-managed or host-aware zoned 6303b1a94c8SDamien Le Moal block device and exposes most of its capacity as a regular block 6313b1a94c8SDamien Le Moal device (drive-managed zoned block device) without any write 6323b1a94c8SDamien Le Moal constraints. This is mainly intended for use with file systems that 6333b1a94c8SDamien Le Moal do not natively support zoned block devices but still want to 6343b1a94c8SDamien Le Moal benefit from the increased capacity offered by SMR disks. Other uses 6353b1a94c8SDamien Le Moal by applications using raw block devices (for example object stores) 6363b1a94c8SDamien Le Moal are also possible. 6373b1a94c8SDamien Le Moal 6383b1a94c8SDamien Le Moal To compile this code as a module, choose M here: the module will 6393b1a94c8SDamien Le Moal be called dm-zoned. 6403b1a94c8SDamien Le Moal 6417ab84db6SMike Snitzer If unsure, say N. 6427eada909SMikulas Patocka 643afd44034SJan Engelhardtendif # MD 644