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 91da177e4SLinus Torvalds help 101da177e4SLinus Torvalds Support multiple physical spindles through a single logical device. 111da177e4SLinus Torvalds Required for RAID and logical volume management. 121da177e4SLinus Torvalds 13afd44034SJan Engelhardtif MD 14afd44034SJan Engelhardt 151da177e4SLinus Torvaldsconfig BLK_DEV_MD 161da177e4SLinus Torvalds tristate "RAID support" 17c66fd019SChristoph Hellwig select BLOCK_HOLDER_DEPRECATED if SYSFS 186c0f5898SNeilBrown # BLOCK_LEGACY_AUTOLOAD requirement should be removed 196c0f5898SNeilBrown # after relevant mdadm enhancements - to make "names=yes" 206c0f5898SNeilBrown # the default - are widely available. 216c0f5898SNeilBrown select BLOCK_LEGACY_AUTOLOAD 22a7f7f624SMasahiro Yamada help 231da177e4SLinus Torvalds This driver lets you combine several hard disk partitions into one 241da177e4SLinus Torvalds logical block device. This can be used to simply append one 251da177e4SLinus Torvalds partition to another one or to combine several redundant hard disks 261da177e4SLinus Torvalds into a RAID1/4/5 device so as to provide protection against hard 271da177e4SLinus Torvalds disk failures. This is called "Software RAID" since the combining of 281da177e4SLinus Torvalds the partitions is done by the kernel. "Hardware RAID" means that the 291da177e4SLinus Torvalds combining is done by a dedicated controller; if you have such a 301da177e4SLinus Torvalds controller, you do not need to say Y here. 311da177e4SLinus Torvalds 321da177e4SLinus Torvalds More information about Software RAID on Linux is contained in the 331da177e4SLinus Torvalds Software RAID mini-HOWTO, available from 346f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also learn 351da177e4SLinus Torvalds where to get the supporting user space utilities raidtools. 361da177e4SLinus Torvalds 371da177e4SLinus Torvalds If unsure, say N. 381da177e4SLinus Torvalds 39a364092aSArjan van de Venconfig MD_AUTODETECT 40a364092aSArjan van de Ven bool "Autodetect RAID arrays during kernel boot" 41ce52aebdSAlan Jenkins depends on BLK_DEV_MD=y 42a364092aSArjan van de Ven default y 43a7f7f624SMasahiro Yamada help 44a364092aSArjan van de Ven If you say Y here, then the kernel will try to autodetect raid 45a364092aSArjan van de Ven arrays as part of its boot process. 46a364092aSArjan van de Ven 47a364092aSArjan van de Ven If you don't use raid and say Y, this autodetection can cause 48a364092aSArjan van de Ven a several-second delay in the boot time due to various 49a364092aSArjan van de Ven synchronisation steps that are part of this step. 50a364092aSArjan van de Ven 51a364092aSArjan van de Ven If unsure, say Y. 52a364092aSArjan van de Ven 53a34d4ef8SChristoph Hellwigconfig MD_BITMAP_FILE 54*0ae1c9d3SChristoph Hellwig bool "MD bitmap file support (deprecated)" 55a34d4ef8SChristoph Hellwig default y 56a34d4ef8SChristoph Hellwig help 57a34d4ef8SChristoph Hellwig If you say Y here, support for write intent bitmaps in files on an 58a34d4ef8SChristoph Hellwig external file system is enabled. This is an alternative to the internal 59a34d4ef8SChristoph Hellwig bitmaps near the MD superblock, and very problematic code that abuses 60a34d4ef8SChristoph Hellwig various kernel APIs and can only work with files on a file system not 61a34d4ef8SChristoph Hellwig actually sitting on the MD device. 62a34d4ef8SChristoph Hellwig 631da177e4SLinus Torvaldsconfig MD_LINEAR 64608f52e3SGuoqing Jiang tristate "Linear (append) mode (deprecated)" 651da177e4SLinus Torvalds depends on BLK_DEV_MD 66a7f7f624SMasahiro Yamada help 671da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 681da177e4SLinus Torvalds use the so-called linear mode, i.e. it will combine the hard disk 691da177e4SLinus Torvalds partitions by simply appending one to the other. 701da177e4SLinus Torvalds 711da177e4SLinus Torvalds To compile this as a module, choose M here: the module 721da177e4SLinus Torvalds will be called linear. 731da177e4SLinus Torvalds 741da177e4SLinus Torvalds If unsure, say Y. 751da177e4SLinus Torvalds 761da177e4SLinus Torvaldsconfig MD_RAID0 771da177e4SLinus Torvalds tristate "RAID-0 (striping) mode" 781da177e4SLinus Torvalds depends on BLK_DEV_MD 79a7f7f624SMasahiro Yamada help 801da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 811da177e4SLinus Torvalds use the so-called raid0 mode, i.e. it will combine the hard disk 821da177e4SLinus Torvalds partitions into one logical device in such a fashion as to fill them 831da177e4SLinus Torvalds up evenly, one chunk here and one chunk there. This will increase 841da177e4SLinus Torvalds the throughput rate if the partitions reside on distinct disks. 851da177e4SLinus Torvalds 861da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 871da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 886f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also 891da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 901da177e4SLinus Torvalds 911da177e4SLinus Torvalds To compile this as a module, choose M here: the module 921da177e4SLinus Torvalds will be called raid0. 931da177e4SLinus Torvalds 941da177e4SLinus Torvalds If unsure, say Y. 951da177e4SLinus Torvalds 961da177e4SLinus Torvaldsconfig MD_RAID1 971da177e4SLinus Torvalds tristate "RAID-1 (mirroring) mode" 981da177e4SLinus Torvalds depends on BLK_DEV_MD 99a7f7f624SMasahiro Yamada help 1001da177e4SLinus Torvalds A RAID-1 set consists of several disk drives which are exact copies 1011da177e4SLinus Torvalds of each other. In the event of a mirror failure, the RAID driver 1021da177e4SLinus Torvalds will continue to use the operational mirrors in the set, providing 1031da177e4SLinus Torvalds an error free MD (multiple device) to the higher levels of the 1041da177e4SLinus Torvalds kernel. In a set with N drives, the available space is the capacity 1051da177e4SLinus Torvalds of a single drive, and the set protects against a failure of (N - 1) 1061da177e4SLinus Torvalds drives. 1071da177e4SLinus Torvalds 1081da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 1091da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 1106f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also 1111da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 1121da177e4SLinus Torvalds 1131da177e4SLinus Torvalds If you want to use such a RAID-1 set, say Y. To compile this code 1141da177e4SLinus Torvalds as a module, choose M here: the module will be called raid1. 1151da177e4SLinus Torvalds 1161da177e4SLinus Torvalds If unsure, say Y. 1171da177e4SLinus Torvalds 1181da177e4SLinus Torvaldsconfig MD_RAID10 11908fb730cSNeilBrown tristate "RAID-10 (mirrored striping) mode" 12008fb730cSNeilBrown depends on BLK_DEV_MD 121a7f7f624SMasahiro Yamada help 1221da177e4SLinus Torvalds RAID-10 provides a combination of striping (RAID-0) and 1234d2554d0SJustin Piszcz mirroring (RAID-1) with easier configuration and more flexible 1241da177e4SLinus Torvalds layout. 1251da177e4SLinus Torvalds Unlike RAID-0, but like RAID-1, RAID-10 requires all devices to 1261da177e4SLinus Torvalds be the same size (or at least, only as much as the smallest device 1271da177e4SLinus Torvalds will be used). 1281da177e4SLinus Torvalds RAID-10 provides a variety of layouts that provide different levels 1291da177e4SLinus Torvalds of redundancy and performance. 1301da177e4SLinus Torvalds 1311da177e4SLinus Torvalds RAID-10 requires mdadm-1.7.0 or later, available at: 1321da177e4SLinus Torvalds 1334f6cce39SSeongJae Park https://www.kernel.org/pub/linux/utils/raid/mdadm/ 1341da177e4SLinus Torvalds 1351da177e4SLinus Torvalds If unsure, say Y. 1361da177e4SLinus Torvalds 13716a53eccSNeilBrownconfig MD_RAID456 13816a53eccSNeilBrown tristate "RAID-4/RAID-5/RAID-6 mode" 1391da177e4SLinus Torvalds depends on BLK_DEV_MD 140f5e70d0fSDavid Woodhouse select RAID6_PQ 14114f09e2fSArnd Bergmann select LIBCRC32C 1429bc89cd8SDan Williams select ASYNC_MEMCPY 1439bc89cd8SDan Williams select ASYNC_XOR 144ac6b53b6SDan Williams select ASYNC_PQ 145ac6b53b6SDan Williams select ASYNC_RAID6_RECOV 146a7f7f624SMasahiro Yamada help 1471da177e4SLinus Torvalds A RAID-5 set of N drives with a capacity of C MB per drive provides 1481da177e4SLinus Torvalds the capacity of C * (N - 1) MB, and protects against a failure 1491da177e4SLinus Torvalds of a single drive. For a given sector (row) number, (N - 1) drives 1501da177e4SLinus Torvalds contain data sectors, and one drive contains the parity protection. 1511da177e4SLinus Torvalds For a RAID-4 set, the parity blocks are present on a single drive, 1521da177e4SLinus Torvalds while a RAID-5 set distributes the parity across the drives in one 1531da177e4SLinus Torvalds of the available parity distribution methods. 1541da177e4SLinus Torvalds 15516a53eccSNeilBrown A RAID-6 set of N drives with a capacity of C MB per drive 15616a53eccSNeilBrown provides the capacity of C * (N - 2) MB, and protects 15716a53eccSNeilBrown against a failure of any two drives. For a given sector 15816a53eccSNeilBrown (row) number, (N - 2) drives contain data sectors, and two 15916a53eccSNeilBrown drives contains two independent redundancy syndromes. Like 16016a53eccSNeilBrown RAID-5, RAID-6 distributes the syndromes across the drives 16116a53eccSNeilBrown in one of the available parity distribution methods. 16216a53eccSNeilBrown 1631da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 1641da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 1656f3bc22bSAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. There you will also 1661da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 1671da177e4SLinus Torvalds 16816a53eccSNeilBrown If you want to use such a RAID-4/RAID-5/RAID-6 set, say Y. To 1691da177e4SLinus Torvalds compile this code as a module, choose M here: the module 17016a53eccSNeilBrown will be called raid456. 1711da177e4SLinus Torvalds 1721da177e4SLinus Torvalds If unsure, say Y. 1731da177e4SLinus Torvalds 1741da177e4SLinus Torvaldsconfig MD_MULTIPATH 175608f52e3SGuoqing Jiang tristate "Multipath I/O support (deprecated)" 1761da177e4SLinus Torvalds depends on BLK_DEV_MD 1771da177e4SLinus Torvalds help 17893bd89a6SNeilBrown MD_MULTIPATH provides a simple multi-path personality for use 17993bd89a6SNeilBrown the MD framework. It is not under active development. New 18093bd89a6SNeilBrown projects should consider using DM_MULTIPATH which has more 18193bd89a6SNeilBrown features and more testing. 1821da177e4SLinus Torvalds 1831da177e4SLinus Torvalds If unsure, say N. 1841da177e4SLinus Torvalds 1851da177e4SLinus Torvaldsconfig MD_FAULTY 186608f52e3SGuoqing Jiang tristate "Faulty test module for MD (deprecated)" 1871da177e4SLinus Torvalds depends on BLK_DEV_MD 1881da177e4SLinus Torvalds help 1891da177e4SLinus Torvalds The "faulty" module allows for a block device that occasionally returns 1901da177e4SLinus Torvalds read or write errors. It is useful for testing. 1911da177e4SLinus Torvalds 1921da177e4SLinus Torvalds In unsure, say N. 1931da177e4SLinus Torvalds 1948e854e9cSGoldwyn Rodrigues 1958e854e9cSGoldwyn Rodriguesconfig MD_CLUSTER 196f0e230adSGuoqing Jiang tristate "Cluster Support for MD" 1978e854e9cSGoldwyn Rodrigues depends on BLK_DEV_MD 1988e854e9cSGoldwyn Rodrigues depends on DLM 1998e854e9cSGoldwyn Rodrigues default n 200a7f7f624SMasahiro Yamada help 2018e854e9cSGoldwyn Rodrigues Clustering support for MD devices. This enables locking and 2028e854e9cSGoldwyn Rodrigues synchronization across multiple systems on the cluster, so all 2038e854e9cSGoldwyn Rodrigues nodes in the cluster can access the MD devices simultaneously. 2048e854e9cSGoldwyn Rodrigues 2058e854e9cSGoldwyn Rodrigues This brings the redundancy (and uptime) of RAID levels across the 206f0e230adSGuoqing Jiang nodes of the cluster. Currently, it can work with raid1 and raid10 207f0e230adSGuoqing Jiang (limited support). 2088e854e9cSGoldwyn Rodrigues 2098e854e9cSGoldwyn Rodrigues If unsure, say N. 2108e854e9cSGoldwyn Rodrigues 211cafe5635SKent Overstreetsource "drivers/md/bcache/Kconfig" 212cafe5635SKent Overstreet 2132995fa78SMikulas Patockaconfig BLK_DEV_DM_BUILTIN 2146341e62bSChristoph Jaeger bool 2152995fa78SMikulas Patocka 2161da177e4SLinus Torvaldsconfig BLK_DEV_DM 2171da177e4SLinus Torvalds tristate "Device mapper support" 218c66fd019SChristoph Hellwig select BLOCK_HOLDER_DEPRECATED if SYSFS 2192995fa78SMikulas Patocka select BLK_DEV_DM_BUILTIN 220248c7933SChristoph Hellwig select BLK_MQ_STACKING 221976431b0SDan Williams depends on DAX || DAX=n 222a7f7f624SMasahiro Yamada help 2231da177e4SLinus Torvalds Device-mapper is a low level volume manager. It works by allowing 2241da177e4SLinus Torvalds people to specify mappings for ranges of logical sectors. Various 2251da177e4SLinus Torvalds mapping types are available, in addition people may write their own 2261da177e4SLinus Torvalds modules containing custom mappings if they wish. 2271da177e4SLinus Torvalds 2281da177e4SLinus Torvalds Higher level volume managers such as LVM2 use this driver. 2291da177e4SLinus Torvalds 2301da177e4SLinus Torvalds To compile this as a module, choose M here: the module will be 2311da177e4SLinus Torvalds called dm-mod. 2321da177e4SLinus Torvalds 2331da177e4SLinus Torvalds If unsure, say N. 2341da177e4SLinus Torvalds 235cc109201SBryn Reevesconfig DM_DEBUG 2366341e62bSChristoph Jaeger bool "Device mapper debugging support" 2370149e57fSAlasdair G Kergon depends on BLK_DEV_DM 238a7f7f624SMasahiro Yamada help 239cc109201SBryn Reeves Enable this for messages that may help debug device-mapper problems. 240cc109201SBryn Reeves 241cc109201SBryn Reeves If unsure, say N. 242cc109201SBryn Reeves 24395d402f0SMikulas Patockaconfig DM_BUFIO 24495d402f0SMikulas Patocka tristate 245d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 246a7f7f624SMasahiro Yamada help 24795d402f0SMikulas Patocka This interface allows you to do buffered I/O on a device and acts 24895d402f0SMikulas Patocka as a cache, holding recently-read blocks in memory and performing 24995d402f0SMikulas Patocka delayed writes. 25095d402f0SMikulas Patocka 2512e8ed711SJoe Thornberconfig DM_DEBUG_BLOCK_MANAGER_LOCKING 2522e8ed711SJoe Thornber bool "Block manager locking" 2532e8ed711SJoe Thornber depends on DM_BUFIO 254a7f7f624SMasahiro Yamada help 2552e8ed711SJoe Thornber Block manager locking can catch various metadata corruption issues. 2562e8ed711SJoe Thornber 2572e8ed711SJoe Thornber If unsure, say N. 2582e8ed711SJoe Thornber 25986bad0c7SMikulas Patockaconfig DM_DEBUG_BLOCK_STACK_TRACING 26086bad0c7SMikulas Patocka bool "Keep stack trace of persistent data block lock holders" 2612e8ed711SJoe Thornber depends on STACKTRACE_SUPPORT && DM_DEBUG_BLOCK_MANAGER_LOCKING 26286bad0c7SMikulas Patocka select STACKTRACE 263a7f7f624SMasahiro Yamada help 26486bad0c7SMikulas Patocka Enable this for messages that may help debug problems with the 26586bad0c7SMikulas Patocka block manager locking used by thin provisioning and caching. 26686bad0c7SMikulas Patocka 26786bad0c7SMikulas Patocka If unsure, say N. 2683f068040SMike Snitzer 2694f81a417SMike Snitzerconfig DM_BIO_PRISON 2704f81a417SMike Snitzer tristate 271d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 272a7f7f624SMasahiro Yamada help 2734f81a417SMike Snitzer Some bio locking schemes used by other device-mapper targets 2744f81a417SMike Snitzer including thin provisioning. 2754f81a417SMike Snitzer 276991d9fa0SJoe Thornbersource "drivers/md/persistent-data/Kconfig" 277991d9fa0SJoe Thornber 27818a5bf27SScott Bauerconfig DM_UNSTRIPED 27918a5bf27SScott Bauer tristate "Unstriped target" 28018a5bf27SScott Bauer depends on BLK_DEV_DM 281a7f7f624SMasahiro Yamada help 28218a5bf27SScott Bauer Unstripes I/O so it is issued solely on a single drive in a HW 28318a5bf27SScott Bauer RAID0 or dm-striped target. 28418a5bf27SScott Bauer 2851da177e4SLinus Torvaldsconfig DM_CRYPT 2861da177e4SLinus Torvalds tristate "Crypt target support" 2870149e57fSAlasdair G Kergon depends on BLK_DEV_DM 28827f5411aSDmitry Baryshkov depends on (ENCRYPTED_KEYS || ENCRYPTED_KEYS=n) 289363880c4SAhmad Fatoum depends on (TRUSTED_KEYS || TRUSTED_KEYS=n) 2901da177e4SLinus Torvalds select CRYPTO 2913263263fSHerbert Xu select CRYPTO_CBC 292a1a262b6SArd Biesheuvel select CRYPTO_ESSIV 293a7f7f624SMasahiro Yamada help 2941da177e4SLinus Torvalds This device-mapper target allows you to create a device that 2951da177e4SLinus Torvalds transparently encrypts the data on it. You'll need to activate 2961da177e4SLinus Torvalds the ciphers you're going to use in the cryptoapi configuration. 2971da177e4SLinus Torvalds 298cf352487SLoic Pefferkorn For further information on dm-crypt and userspace tools see: 2996ed443c0SBaruch Siach <https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt> 3001da177e4SLinus Torvalds 3011da177e4SLinus Torvalds To compile this code as a module, choose M here: the module will 3021da177e4SLinus Torvalds be called dm-crypt. 3031da177e4SLinus Torvalds 3041da177e4SLinus Torvalds If unsure, say N. 3051da177e4SLinus Torvalds 3061da177e4SLinus Torvaldsconfig DM_SNAPSHOT 3070149e57fSAlasdair G Kergon tristate "Snapshot target" 3080149e57fSAlasdair G Kergon depends on BLK_DEV_DM 30955494bf2SMikulas Patocka select DM_BUFIO 310a7f7f624SMasahiro Yamada help 3114d2554d0SJustin Piszcz Allow volume managers to take writable snapshots of a device. 3121da177e4SLinus Torvalds 313991d9fa0SJoe Thornberconfig DM_THIN_PROVISIONING 314d57916a0SAlasdair G Kergon tristate "Thin provisioning target" 315d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 316991d9fa0SJoe Thornber select DM_PERSISTENT_DATA 3174f81a417SMike Snitzer select DM_BIO_PRISON 318a7f7f624SMasahiro Yamada help 319991d9fa0SJoe Thornber Provides thin provisioning and snapshots that share a data store. 320991d9fa0SJoe Thornber 321c6b4fcbaSJoe Thornberconfig DM_CACHE 322c6b4fcbaSJoe Thornber tristate "Cache target (EXPERIMENTAL)" 323c6b4fcbaSJoe Thornber depends on BLK_DEV_DM 324c6b4fcbaSJoe Thornber default n 325c6b4fcbaSJoe Thornber select DM_PERSISTENT_DATA 326c6b4fcbaSJoe Thornber select DM_BIO_PRISON 327a7f7f624SMasahiro Yamada help 328c6b4fcbaSJoe Thornber dm-cache attempts to improve performance of a block device by 329c6b4fcbaSJoe Thornber moving frequently used data to a smaller, higher performance 330c6b4fcbaSJoe Thornber device. Different 'policy' plugins can be used to change the 331c6b4fcbaSJoe Thornber algorithms used to select which blocks are promoted, demoted, 332c6b4fcbaSJoe Thornber cleaned etc. It supports writeback and writethrough modes. 333c6b4fcbaSJoe Thornber 33466a63635SJoe Thornberconfig DM_CACHE_SMQ 33566a63635SJoe Thornber tristate "Stochastic MQ Cache Policy (EXPERIMENTAL)" 33666a63635SJoe Thornber depends on DM_CACHE 33766a63635SJoe Thornber default y 338a7f7f624SMasahiro Yamada help 33966a63635SJoe Thornber A cache policy that uses a multiqueue ordered by recent hits 34066a63635SJoe Thornber to select which blocks should be promoted and demoted. 34166a63635SJoe Thornber This is meant to be a general purpose policy. It prioritises 34266a63635SJoe Thornber reads over writes. This SMQ policy (vs MQ) offers the promise 34366a63635SJoe Thornber of less memory utilization, improved performance and increased 34466a63635SJoe Thornber adaptability in the face of changing workloads. 34566a63635SJoe Thornber 34648debafeSMikulas Patockaconfig DM_WRITECACHE 34748debafeSMikulas Patocka tristate "Writecache target" 34848debafeSMikulas Patocka depends on BLK_DEV_DM 349a7f7f624SMasahiro Yamada help 35048debafeSMikulas Patocka The writecache target caches writes on persistent memory or SSD. 35148debafeSMikulas Patocka It is intended for databases or other programs that need extremely 35248debafeSMikulas Patocka low commit latency. 35348debafeSMikulas Patocka 35448debafeSMikulas Patocka The writecache target doesn't cache reads because reads are supposed 35548debafeSMikulas Patocka to be cached in standard RAM. 35648debafeSMikulas Patocka 357d3c7b35cSHeinz Mauelshagenconfig DM_EBS 358d3c7b35cSHeinz Mauelshagen tristate "Emulated block size target (EXPERIMENTAL)" 3591c277e50SChristoph Hellwig depends on BLK_DEV_DM && !HIGHMEM 360d3c7b35cSHeinz Mauelshagen select DM_BUFIO 361d3c7b35cSHeinz Mauelshagen help 362d3c7b35cSHeinz Mauelshagen dm-ebs emulates smaller logical block size on backing devices 363d3c7b35cSHeinz Mauelshagen with larger ones (e.g. 512 byte sectors on 4K native disks). 364d3c7b35cSHeinz Mauelshagen 365eec40579SJoe Thornberconfig DM_ERA 366eec40579SJoe Thornber tristate "Era target (EXPERIMENTAL)" 367eec40579SJoe Thornber depends on BLK_DEV_DM 368eec40579SJoe Thornber default n 369eec40579SJoe Thornber select DM_PERSISTENT_DATA 370eec40579SJoe Thornber select DM_BIO_PRISON 371a7f7f624SMasahiro Yamada help 372eec40579SJoe Thornber dm-era tracks which parts of a block device are written to 373eec40579SJoe Thornber over time. Useful for maintaining cache coherency when using 374eec40579SJoe Thornber vendor snapshots. 375eec40579SJoe Thornber 3767431b783SNikos Tsironisconfig DM_CLONE 3777431b783SNikos Tsironis tristate "Clone target (EXPERIMENTAL)" 3787431b783SNikos Tsironis depends on BLK_DEV_DM 3797431b783SNikos Tsironis default n 3807431b783SNikos Tsironis select DM_PERSISTENT_DATA 381a7f7f624SMasahiro Yamada help 3827431b783SNikos Tsironis dm-clone produces a one-to-one copy of an existing, read-only source 3837431b783SNikos Tsironis device into a writable destination device. The cloned device is 3847431b783SNikos Tsironis visible/mountable immediately and the copy of the source device to the 3857431b783SNikos Tsironis destination device happens in the background, in parallel with user 3867431b783SNikos Tsironis I/O. 3877431b783SNikos Tsironis 3887431b783SNikos Tsironis If unsure, say N. 3897431b783SNikos Tsironis 3901da177e4SLinus Torvaldsconfig DM_MIRROR 3910149e57fSAlasdair G Kergon tristate "Mirror target" 3920149e57fSAlasdair G Kergon depends on BLK_DEV_DM 393a7f7f624SMasahiro Yamada help 3941da177e4SLinus Torvalds Allow volume managers to mirror logical volumes, also 3951da177e4SLinus Torvalds needed for live data migration tools such as 'pvmove'. 3961da177e4SLinus Torvalds 3975442851eSMikulas Patockaconfig DM_LOG_USERSPACE 3985442851eSMikulas Patocka tristate "Mirror userspace logging" 3995442851eSMikulas Patocka depends on DM_MIRROR && NET 4005442851eSMikulas Patocka select CONNECTOR 401a7f7f624SMasahiro Yamada help 4025442851eSMikulas Patocka The userspace logging module provides a mechanism for 4035442851eSMikulas Patocka relaying the dm-dirty-log API to userspace. Log designs 4045442851eSMikulas Patocka which are more suited to userspace implementation (e.g. 4055442851eSMikulas Patocka shared storage logs) or experimental logs can be implemented 4065442851eSMikulas Patocka by leveraging this framework. 4075442851eSMikulas Patocka 4089d09e663SNeilBrownconfig DM_RAID 409d9f691c3SNeilBrown tristate "RAID 1/4/5/6/10 target" 410035220b3SAlasdair G Kergon depends on BLK_DEV_DM 4117b81ef8bSMikulas Patocka select MD_RAID0 412b12d437bSJonathan Brassow select MD_RAID1 413d9f691c3SNeilBrown select MD_RAID10 4149d09e663SNeilBrown select MD_RAID456 4159d09e663SNeilBrown select BLK_DEV_MD 416a7f7f624SMasahiro Yamada help 417d9f691c3SNeilBrown A dm target that supports RAID1, RAID10, RAID4, RAID5 and RAID6 mappings 4189d09e663SNeilBrown 4199d09e663SNeilBrown A RAID-5 set of N drives with a capacity of C MB per drive provides 4209d09e663SNeilBrown the capacity of C * (N - 1) MB, and protects against a failure 4219d09e663SNeilBrown of a single drive. For a given sector (row) number, (N - 1) drives 4229d09e663SNeilBrown contain data sectors, and one drive contains the parity protection. 4239d09e663SNeilBrown For a RAID-4 set, the parity blocks are present on a single drive, 4249d09e663SNeilBrown while a RAID-5 set distributes the parity across the drives in one 4259d09e663SNeilBrown of the available parity distribution methods. 4269d09e663SNeilBrown 4279d09e663SNeilBrown A RAID-6 set of N drives with a capacity of C MB per drive 4289d09e663SNeilBrown provides the capacity of C * (N - 2) MB, and protects 4299d09e663SNeilBrown against a failure of any two drives. For a given sector 4309d09e663SNeilBrown (row) number, (N - 2) drives contain data sectors, and two 4319d09e663SNeilBrown drives contains two independent redundancy syndromes. Like 4329d09e663SNeilBrown RAID-5, RAID-6 distributes the syndromes across the drives 4339d09e663SNeilBrown in one of the available parity distribution methods. 4349d09e663SNeilBrown 4351da177e4SLinus Torvaldsconfig DM_ZERO 4360149e57fSAlasdair G Kergon tristate "Zero target" 4370149e57fSAlasdair G Kergon depends on BLK_DEV_DM 438a7f7f624SMasahiro Yamada help 4391da177e4SLinus Torvalds A target that discards writes, and returns all zeroes for 4401da177e4SLinus Torvalds reads. Useful in some recovery situations. 4411da177e4SLinus Torvalds 4421da177e4SLinus Torvaldsconfig DM_MULTIPATH 4430149e57fSAlasdair G Kergon tristate "Multipath target" 4440149e57fSAlasdair G Kergon depends on BLK_DEV_DM 445fe9233fbSChandra Seetharaman # nasty syntax but means make DM_MULTIPATH independent 446fe9233fbSChandra Seetharaman # of SCSI_DH if the latter isn't defined but if 447fe9233fbSChandra Seetharaman # it is, DM_MULTIPATH must depend on it. We get a build 448fe9233fbSChandra Seetharaman # error if SCSI_DH=m and DM_MULTIPATH=y 449294ab783SChristoph Hellwig depends on !SCSI_DH || SCSI 450a7f7f624SMasahiro Yamada help 4511da177e4SLinus Torvalds Allow volume managers to support multipath hardware. 4521da177e4SLinus Torvalds 453fd5e0339SKiyoshi Uedaconfig DM_MULTIPATH_QL 454fd5e0339SKiyoshi Ueda tristate "I/O Path Selector based on the number of in-flight I/Os" 455fd5e0339SKiyoshi Ueda depends on DM_MULTIPATH 456a7f7f624SMasahiro Yamada help 457fd5e0339SKiyoshi Ueda This path selector is a dynamic load balancer which selects 458fd5e0339SKiyoshi Ueda the path with the least number of in-flight I/Os. 459fd5e0339SKiyoshi Ueda 460fd5e0339SKiyoshi Ueda If unsure, say N. 461fd5e0339SKiyoshi Ueda 462f392ba88SKiyoshi Uedaconfig DM_MULTIPATH_ST 463f392ba88SKiyoshi Ueda tristate "I/O Path Selector based on the service time" 464f392ba88SKiyoshi Ueda depends on DM_MULTIPATH 465a7f7f624SMasahiro Yamada help 466f392ba88SKiyoshi Ueda This path selector is a dynamic load balancer which selects 467f392ba88SKiyoshi Ueda the path expected to complete the incoming I/O in the shortest 468f392ba88SKiyoshi Ueda time. 469f392ba88SKiyoshi Ueda 470f392ba88SKiyoshi Ueda If unsure, say N. 471f392ba88SKiyoshi Ueda 4722613eab1SKhazhismel Kumykovconfig DM_MULTIPATH_HST 4732613eab1SKhazhismel Kumykov tristate "I/O Path Selector based on historical service time" 4742613eab1SKhazhismel Kumykov depends on DM_MULTIPATH 4752613eab1SKhazhismel Kumykov help 4762613eab1SKhazhismel Kumykov This path selector is a dynamic load balancer which selects 4772613eab1SKhazhismel Kumykov the path expected to complete the incoming I/O in the shortest 4782613eab1SKhazhismel Kumykov time by comparing estimated service time (based on historical 4792613eab1SKhazhismel Kumykov service time). 4802613eab1SKhazhismel Kumykov 4812613eab1SKhazhismel Kumykov If unsure, say N. 4822613eab1SKhazhismel Kumykov 483e4d2e82bSMike Christieconfig DM_MULTIPATH_IOA 484e4d2e82bSMike Christie tristate "I/O Path Selector based on CPU submission" 485e4d2e82bSMike Christie depends on DM_MULTIPATH 486e4d2e82bSMike Christie help 487e4d2e82bSMike Christie This path selector selects the path based on the CPU the IO is 488e4d2e82bSMike Christie executed on and the CPU to path mapping setup at path addition time. 489e4d2e82bSMike Christie 490e4d2e82bSMike Christie If unsure, say N. 491e4d2e82bSMike Christie 49226b9f228SHeinz Mauelshagenconfig DM_DELAY 493d57916a0SAlasdair G Kergon tristate "I/O delaying target" 494d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 495a7f7f624SMasahiro Yamada help 49626b9f228SHeinz Mauelshagen A target that delays reads and/or writes and can send 49726b9f228SHeinz Mauelshagen them to different devices. Useful for testing. 49826b9f228SHeinz Mauelshagen 49926b9f228SHeinz Mauelshagen If unsure, say N. 50026b9f228SHeinz Mauelshagen 501e4f3fabdSBryan Gurneyconfig DM_DUST 502e4f3fabdSBryan Gurney tristate "Bad sector simulation target" 503e4f3fabdSBryan Gurney depends on BLK_DEV_DM 504a7f7f624SMasahiro Yamada help 505e4f3fabdSBryan Gurney A target that simulates bad sector behavior. 506e4f3fabdSBryan Gurney Useful for testing. 507e4f3fabdSBryan Gurney 508e4f3fabdSBryan Gurney If unsure, say N. 509e4f3fabdSBryan Gurney 5106bbc923dSHelen Koikeconfig DM_INIT 5116bbc923dSHelen Koike bool "DM \"dm-mod.create=\" parameter support" 5126bbc923dSHelen Koike depends on BLK_DEV_DM=y 513a7f7f624SMasahiro Yamada help 5146bbc923dSHelen Koike Enable "dm-mod.create=" parameter to create mapped devices at init time. 5156bbc923dSHelen Koike This option is useful to allow mounting rootfs without requiring an 5166bbc923dSHelen Koike initramfs. 5176cf2a73cSMauro Carvalho Chehab See Documentation/admin-guide/device-mapper/dm-init.rst for dm-mod.create="..." 5186bbc923dSHelen Koike format. 5196bbc923dSHelen Koike 5206bbc923dSHelen Koike If unsure, say N. 5216bbc923dSHelen Koike 52251e5b2bdSMike Andersonconfig DM_UEVENT 523e0b215daSAlasdair G Kergon bool "DM uevents" 524e0b215daSAlasdair G Kergon depends on BLK_DEV_DM 525a7f7f624SMasahiro Yamada help 52651e5b2bdSMike Anderson Generate udev events for DM events. 52751e5b2bdSMike Anderson 5283407ef52SJosef Bacikconfig DM_FLAKEY 529d57916a0SAlasdair G Kergon tristate "Flakey target" 530d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 531a7f7f624SMasahiro Yamada help 5323407ef52SJosef Bacik A target that intermittently fails I/O for debugging purposes. 5333407ef52SJosef Bacik 534a4ffc152SMikulas Patockaconfig DM_VERITY 535d57916a0SAlasdair G Kergon tristate "Verity target support" 536d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 537a4ffc152SMikulas Patocka select CRYPTO 538a4ffc152SMikulas Patocka select CRYPTO_HASH 539a4ffc152SMikulas Patocka select DM_BUFIO 540a7f7f624SMasahiro Yamada help 541a4ffc152SMikulas Patocka This device-mapper target creates a read-only device that 542a4ffc152SMikulas Patocka transparently validates the data on one underlying device against 543a4ffc152SMikulas Patocka a pre-generated tree of cryptographic checksums stored on a second 544a4ffc152SMikulas Patocka device. 545a4ffc152SMikulas Patocka 546a4ffc152SMikulas Patocka You'll need to activate the digests you're going to use in the 547a4ffc152SMikulas Patocka cryptoapi configuration. 548a4ffc152SMikulas Patocka 549a4ffc152SMikulas Patocka To compile this code as a module, choose M here: the module will 550a4ffc152SMikulas Patocka be called dm-verity. 551a4ffc152SMikulas Patocka 552a4ffc152SMikulas Patocka If unsure, say N. 553a4ffc152SMikulas Patocka 55488cd3e6cSJaskaran Khuranaconfig DM_VERITY_VERIFY_ROOTHASH_SIG 55588cd3e6cSJaskaran Khurana def_bool n 55688cd3e6cSJaskaran Khurana bool "Verity data device root hash signature verification support" 55788cd3e6cSJaskaran Khurana depends on DM_VERITY 55888cd3e6cSJaskaran Khurana select SYSTEM_DATA_VERIFICATION 55988cd3e6cSJaskaran Khurana help 56088cd3e6cSJaskaran Khurana Add ability for dm-verity device to be validated if the 56188cd3e6cSJaskaran Khurana pre-generated tree of cryptographic checksums passed has a pkcs#7 56288cd3e6cSJaskaran Khurana signature file that can validate the roothash of the tree. 5634da8f8c8SMickaël Salaün 5644da8f8c8SMickaël Salaün By default, rely on the builtin trusted keyring. 5654da8f8c8SMickaël Salaün 5664da8f8c8SMickaël Salaün If unsure, say N. 5674da8f8c8SMickaël Salaün 5684da8f8c8SMickaël Salaünconfig DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING 5694da8f8c8SMickaël Salaün bool "Verity data device root hash signature verification with secondary keyring" 5704da8f8c8SMickaël Salaün depends on DM_VERITY_VERIFY_ROOTHASH_SIG 5714da8f8c8SMickaël Salaün depends on SECONDARY_TRUSTED_KEYRING 5724da8f8c8SMickaël Salaün help 5734da8f8c8SMickaël Salaün Rely on the secondary trusted keyring to verify dm-verity signatures. 57488cd3e6cSJaskaran Khurana 57588cd3e6cSJaskaran Khurana If unsure, say N. 57688cd3e6cSJaskaran Khurana 577a739ff3fSSami Tolvanenconfig DM_VERITY_FEC 578a739ff3fSSami Tolvanen bool "Verity forward error correction support" 579a739ff3fSSami Tolvanen depends on DM_VERITY 580a739ff3fSSami Tolvanen select REED_SOLOMON 581a739ff3fSSami Tolvanen select REED_SOLOMON_DEC8 582a7f7f624SMasahiro Yamada help 583a739ff3fSSami Tolvanen Add forward error correction support to dm-verity. This option 584a739ff3fSSami Tolvanen makes it possible to use pre-generated error correction data to 585a739ff3fSSami Tolvanen recover from corrupted blocks. 586a739ff3fSSami Tolvanen 587a739ff3fSSami Tolvanen If unsure, say N. 588a739ff3fSSami Tolvanen 5899d0eb0abSJim Ramsayconfig DM_SWITCH 5909d0eb0abSJim Ramsay tristate "Switch target support (EXPERIMENTAL)" 5919d0eb0abSJim Ramsay depends on BLK_DEV_DM 592a7f7f624SMasahiro Yamada help 5939d0eb0abSJim Ramsay This device-mapper target creates a device that supports an arbitrary 5949d0eb0abSJim Ramsay mapping of fixed-size regions of I/O across a fixed set of paths. 5959d0eb0abSJim Ramsay The path used for any specific region can be switched dynamically 5969d0eb0abSJim Ramsay by sending the target a message. 5979d0eb0abSJim Ramsay 5989d0eb0abSJim Ramsay To compile this code as a module, choose M here: the module will 5999d0eb0abSJim Ramsay be called dm-switch. 6009d0eb0abSJim Ramsay 6019d0eb0abSJim Ramsay If unsure, say N. 6029d0eb0abSJim Ramsay 6030e9cebe7SJosef Bacikconfig DM_LOG_WRITES 6040e9cebe7SJosef Bacik tristate "Log writes target support" 6050e9cebe7SJosef Bacik depends on BLK_DEV_DM 606a7f7f624SMasahiro Yamada help 6070e9cebe7SJosef Bacik This device-mapper target takes two devices, one device to use 6080e9cebe7SJosef Bacik normally, one to log all write operations done to the first device. 6090e9cebe7SJosef Bacik This is for use by file system developers wishing to verify that 61057d42487SGeert Uytterhoeven their fs is writing a consistent file system at all times by allowing 6110e9cebe7SJosef Bacik them to replay the log in a variety of ways and to check the 6120e9cebe7SJosef Bacik contents. 6130e9cebe7SJosef Bacik 6140e9cebe7SJosef Bacik To compile this code as a module, choose M here: the module will 6150e9cebe7SJosef Bacik be called dm-log-writes. 6160e9cebe7SJosef Bacik 6170e9cebe7SJosef Bacik If unsure, say N. 6180e9cebe7SJosef Bacik 6197eada909SMikulas Patockaconfig DM_INTEGRITY 6207ab84db6SMike Snitzer tristate "Integrity target support" 6217eada909SMikulas Patocka depends on BLK_DEV_DM 6227eada909SMikulas Patocka select BLK_DEV_INTEGRITY 6237eada909SMikulas Patocka select DM_BUFIO 6247eada909SMikulas Patocka select CRYPTO 625f7b347acSAnthony Iliopoulos select CRYPTO_SKCIPHER 6267eada909SMikulas Patocka select ASYNC_XOR 62782bb8599SMichael Weiß select DM_AUDIT if AUDIT 628a7f7f624SMasahiro Yamada help 6297ab84db6SMike Snitzer This device-mapper target emulates a block device that has 6307ab84db6SMike Snitzer additional per-sector tags that can be used for storing 6317ab84db6SMike Snitzer integrity information. 6327ab84db6SMike Snitzer 6337ab84db6SMike Snitzer This integrity target is used with the dm-crypt target to 6347ab84db6SMike Snitzer provide authenticated disk encryption or it can be used 6357ab84db6SMike Snitzer standalone. 6367ab84db6SMike Snitzer 6377ab84db6SMike Snitzer To compile this code as a module, choose M here: the module will 6387ab84db6SMike Snitzer be called dm-integrity. 6397ab84db6SMike Snitzer 6403b1a94c8SDamien Le Moalconfig DM_ZONED 6413b1a94c8SDamien Le Moal tristate "Drive-managed zoned block device target support" 6423b1a94c8SDamien Le Moal depends on BLK_DEV_DM 6433b1a94c8SDamien Le Moal depends on BLK_DEV_ZONED 644b690bd54SArnd Bergmann select CRC32 645a7f7f624SMasahiro Yamada help 6463b1a94c8SDamien Le Moal This device-mapper target takes a host-managed or host-aware zoned 6473b1a94c8SDamien Le Moal block device and exposes most of its capacity as a regular block 6483b1a94c8SDamien Le Moal device (drive-managed zoned block device) without any write 6493b1a94c8SDamien Le Moal constraints. This is mainly intended for use with file systems that 6503b1a94c8SDamien Le Moal do not natively support zoned block devices but still want to 6513b1a94c8SDamien Le Moal benefit from the increased capacity offered by SMR disks. Other uses 6523b1a94c8SDamien Le Moal by applications using raw block devices (for example object stores) 6533b1a94c8SDamien Le Moal are also possible. 6543b1a94c8SDamien Le Moal 6553b1a94c8SDamien Le Moal To compile this code as a module, choose M here: the module will 6563b1a94c8SDamien Le Moal be called dm-zoned. 6573b1a94c8SDamien Le Moal 6587ab84db6SMike Snitzer If unsure, say N. 6597eada909SMikulas Patocka 6602cc1ae48SMichael Weißconfig DM_AUDIT 6612cc1ae48SMichael Weiß bool "DM audit events" 6622cc1ae48SMichael Weiß depends on AUDIT 6632cc1ae48SMichael Weiß help 6642cc1ae48SMichael Weiß Generate audit events for device-mapper. 6652cc1ae48SMichael Weiß 6662cc1ae48SMichael Weiß Enables audit logging of several security relevant events in the 6672cc1ae48SMichael Weiß particular device-mapper targets, especially the integrity target. 6682cc1ae48SMichael Weiß 669afd44034SJan Engelhardtendif # MD 670