11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Block device driver configuration 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 5afd44034SJan Engelhardtmenuconfig MD 61da177e4SLinus Torvalds bool "Multiple devices driver support (RAID and LVM)" 7afd44034SJan Engelhardt depends on BLOCK 883fe27eaSPranith Kumar select SRCU 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" 171da177e4SLinus Torvalds ---help--- 181da177e4SLinus Torvalds This driver lets you combine several hard disk partitions into one 191da177e4SLinus Torvalds logical block device. This can be used to simply append one 201da177e4SLinus Torvalds partition to another one or to combine several redundant hard disks 211da177e4SLinus Torvalds into a RAID1/4/5 device so as to provide protection against hard 221da177e4SLinus Torvalds disk failures. This is called "Software RAID" since the combining of 231da177e4SLinus Torvalds the partitions is done by the kernel. "Hardware RAID" means that the 241da177e4SLinus Torvalds combining is done by a dedicated controller; if you have such a 251da177e4SLinus Torvalds controller, you do not need to say Y here. 261da177e4SLinus Torvalds 271da177e4SLinus Torvalds More information about Software RAID on Linux is contained in the 281da177e4SLinus Torvalds Software RAID mini-HOWTO, available from 291da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also learn 301da177e4SLinus Torvalds where to get the supporting user space utilities raidtools. 311da177e4SLinus Torvalds 321da177e4SLinus Torvalds If unsure, say N. 331da177e4SLinus Torvalds 34a364092aSArjan van de Venconfig MD_AUTODETECT 35a364092aSArjan van de Ven bool "Autodetect RAID arrays during kernel boot" 36ce52aebdSAlan Jenkins depends on BLK_DEV_MD=y 37a364092aSArjan van de Ven default y 38a364092aSArjan van de Ven ---help--- 39a364092aSArjan van de Ven If you say Y here, then the kernel will try to autodetect raid 40a364092aSArjan van de Ven arrays as part of its boot process. 41a364092aSArjan van de Ven 42a364092aSArjan van de Ven If you don't use raid and say Y, this autodetection can cause 43a364092aSArjan van de Ven a several-second delay in the boot time due to various 44a364092aSArjan van de Ven synchronisation steps that are part of this step. 45a364092aSArjan van de Ven 46a364092aSArjan van de Ven If unsure, say Y. 47a364092aSArjan van de Ven 481da177e4SLinus Torvaldsconfig MD_LINEAR 491da177e4SLinus Torvalds tristate "Linear (append) mode" 501da177e4SLinus Torvalds depends on BLK_DEV_MD 511da177e4SLinus Torvalds ---help--- 521da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 531da177e4SLinus Torvalds use the so-called linear mode, i.e. it will combine the hard disk 541da177e4SLinus Torvalds partitions by simply appending one to the other. 551da177e4SLinus Torvalds 561da177e4SLinus Torvalds To compile this as a module, choose M here: the module 571da177e4SLinus Torvalds will be called linear. 581da177e4SLinus Torvalds 591da177e4SLinus Torvalds If unsure, say Y. 601da177e4SLinus Torvalds 611da177e4SLinus Torvaldsconfig MD_RAID0 621da177e4SLinus Torvalds tristate "RAID-0 (striping) mode" 631da177e4SLinus Torvalds depends on BLK_DEV_MD 641da177e4SLinus Torvalds ---help--- 651da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 661da177e4SLinus Torvalds use the so-called raid0 mode, i.e. it will combine the hard disk 671da177e4SLinus Torvalds partitions into one logical device in such a fashion as to fill them 681da177e4SLinus Torvalds up evenly, one chunk here and one chunk there. This will increase 691da177e4SLinus Torvalds the throughput rate if the partitions reside on distinct disks. 701da177e4SLinus Torvalds 711da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 721da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 731da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also 741da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 751da177e4SLinus Torvalds 761da177e4SLinus Torvalds To compile this as a module, choose M here: the module 771da177e4SLinus Torvalds will be called raid0. 781da177e4SLinus Torvalds 791da177e4SLinus Torvalds If unsure, say Y. 801da177e4SLinus Torvalds 811da177e4SLinus Torvaldsconfig MD_RAID1 821da177e4SLinus Torvalds tristate "RAID-1 (mirroring) mode" 831da177e4SLinus Torvalds depends on BLK_DEV_MD 841da177e4SLinus Torvalds ---help--- 851da177e4SLinus Torvalds A RAID-1 set consists of several disk drives which are exact copies 861da177e4SLinus Torvalds of each other. In the event of a mirror failure, the RAID driver 871da177e4SLinus Torvalds will continue to use the operational mirrors in the set, providing 881da177e4SLinus Torvalds an error free MD (multiple device) to the higher levels of the 891da177e4SLinus Torvalds kernel. In a set with N drives, the available space is the capacity 901da177e4SLinus Torvalds of a single drive, and the set protects against a failure of (N - 1) 911da177e4SLinus Torvalds drives. 921da177e4SLinus Torvalds 931da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 941da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 951da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also 961da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 971da177e4SLinus Torvalds 981da177e4SLinus Torvalds If you want to use such a RAID-1 set, say Y. To compile this code 991da177e4SLinus Torvalds as a module, choose M here: the module will be called raid1. 1001da177e4SLinus Torvalds 1011da177e4SLinus Torvalds If unsure, say Y. 1021da177e4SLinus Torvalds 1031da177e4SLinus Torvaldsconfig MD_RAID10 10408fb730cSNeilBrown tristate "RAID-10 (mirrored striping) mode" 10508fb730cSNeilBrown depends on BLK_DEV_MD 1061da177e4SLinus Torvalds ---help--- 1071da177e4SLinus Torvalds RAID-10 provides a combination of striping (RAID-0) and 1084d2554d0SJustin Piszcz mirroring (RAID-1) with easier configuration and more flexible 1091da177e4SLinus Torvalds layout. 1101da177e4SLinus Torvalds Unlike RAID-0, but like RAID-1, RAID-10 requires all devices to 1111da177e4SLinus Torvalds be the same size (or at least, only as much as the smallest device 1121da177e4SLinus Torvalds will be used). 1131da177e4SLinus Torvalds RAID-10 provides a variety of layouts that provide different levels 1141da177e4SLinus Torvalds of redundancy and performance. 1151da177e4SLinus Torvalds 1161da177e4SLinus Torvalds RAID-10 requires mdadm-1.7.0 or later, available at: 1171da177e4SLinus Torvalds 1184f6cce39SSeongJae Park https://www.kernel.org/pub/linux/utils/raid/mdadm/ 1191da177e4SLinus Torvalds 1201da177e4SLinus Torvalds If unsure, say Y. 1211da177e4SLinus Torvalds 12216a53eccSNeilBrownconfig MD_RAID456 12316a53eccSNeilBrown tristate "RAID-4/RAID-5/RAID-6 mode" 1241da177e4SLinus Torvalds depends on BLK_DEV_MD 125f5e70d0fSDavid Woodhouse select RAID6_PQ 12614f09e2fSArnd Bergmann select LIBCRC32C 1279bc89cd8SDan Williams select ASYNC_MEMCPY 1289bc89cd8SDan Williams select ASYNC_XOR 129ac6b53b6SDan Williams select ASYNC_PQ 130ac6b53b6SDan Williams select ASYNC_RAID6_RECOV 1311da177e4SLinus Torvalds ---help--- 1321da177e4SLinus Torvalds A RAID-5 set of N drives with a capacity of C MB per drive provides 1331da177e4SLinus Torvalds the capacity of C * (N - 1) MB, and protects against a failure 1341da177e4SLinus Torvalds of a single drive. For a given sector (row) number, (N - 1) drives 1351da177e4SLinus Torvalds contain data sectors, and one drive contains the parity protection. 1361da177e4SLinus Torvalds For a RAID-4 set, the parity blocks are present on a single drive, 1371da177e4SLinus Torvalds while a RAID-5 set distributes the parity across the drives in one 1381da177e4SLinus Torvalds of the available parity distribution methods. 1391da177e4SLinus Torvalds 14016a53eccSNeilBrown A RAID-6 set of N drives with a capacity of C MB per drive 14116a53eccSNeilBrown provides the capacity of C * (N - 2) MB, and protects 14216a53eccSNeilBrown against a failure of any two drives. For a given sector 14316a53eccSNeilBrown (row) number, (N - 2) drives contain data sectors, and two 14416a53eccSNeilBrown drives contains two independent redundancy syndromes. Like 14516a53eccSNeilBrown RAID-5, RAID-6 distributes the syndromes across the drives 14616a53eccSNeilBrown in one of the available parity distribution methods. 14716a53eccSNeilBrown 1481da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 1491da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 1501da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also 1511da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 1521da177e4SLinus Torvalds 15316a53eccSNeilBrown If you want to use such a RAID-4/RAID-5/RAID-6 set, say Y. To 1541da177e4SLinus Torvalds compile this code as a module, choose M here: the module 15516a53eccSNeilBrown will be called raid456. 1561da177e4SLinus Torvalds 1571da177e4SLinus Torvalds If unsure, say Y. 1581da177e4SLinus Torvalds 1591da177e4SLinus Torvaldsconfig MD_MULTIPATH 1601da177e4SLinus Torvalds tristate "Multipath I/O support" 1611da177e4SLinus Torvalds depends on BLK_DEV_MD 1621da177e4SLinus Torvalds help 16393bd89a6SNeilBrown MD_MULTIPATH provides a simple multi-path personality for use 16493bd89a6SNeilBrown the MD framework. It is not under active development. New 16593bd89a6SNeilBrown projects should consider using DM_MULTIPATH which has more 16693bd89a6SNeilBrown features and more testing. 1671da177e4SLinus Torvalds 1681da177e4SLinus Torvalds If unsure, say N. 1691da177e4SLinus Torvalds 1701da177e4SLinus Torvaldsconfig MD_FAULTY 1711da177e4SLinus Torvalds tristate "Faulty test module for MD" 1721da177e4SLinus Torvalds depends on BLK_DEV_MD 1731da177e4SLinus Torvalds help 1741da177e4SLinus Torvalds The "faulty" module allows for a block device that occasionally returns 1751da177e4SLinus Torvalds read or write errors. It is useful for testing. 1761da177e4SLinus Torvalds 1771da177e4SLinus Torvalds In unsure, say N. 1781da177e4SLinus Torvalds 1798e854e9cSGoldwyn Rodrigues 1808e854e9cSGoldwyn Rodriguesconfig MD_CLUSTER 181f0e230adSGuoqing Jiang tristate "Cluster Support for MD" 1828e854e9cSGoldwyn Rodrigues depends on BLK_DEV_MD 1838e854e9cSGoldwyn Rodrigues depends on DLM 1848e854e9cSGoldwyn Rodrigues default n 1858e854e9cSGoldwyn Rodrigues ---help--- 1868e854e9cSGoldwyn Rodrigues Clustering support for MD devices. This enables locking and 1878e854e9cSGoldwyn Rodrigues synchronization across multiple systems on the cluster, so all 1888e854e9cSGoldwyn Rodrigues nodes in the cluster can access the MD devices simultaneously. 1898e854e9cSGoldwyn Rodrigues 1908e854e9cSGoldwyn Rodrigues This brings the redundancy (and uptime) of RAID levels across the 191f0e230adSGuoqing Jiang nodes of the cluster. Currently, it can work with raid1 and raid10 192f0e230adSGuoqing Jiang (limited support). 1938e854e9cSGoldwyn Rodrigues 1948e854e9cSGoldwyn Rodrigues If unsure, say N. 1958e854e9cSGoldwyn Rodrigues 196cafe5635SKent Overstreetsource "drivers/md/bcache/Kconfig" 197cafe5635SKent Overstreet 1982995fa78SMikulas Patockaconfig BLK_DEV_DM_BUILTIN 1996341e62bSChristoph Jaeger bool 2002995fa78SMikulas Patocka 2011da177e4SLinus Torvaldsconfig BLK_DEV_DM 2021da177e4SLinus Torvalds tristate "Device mapper support" 2032995fa78SMikulas Patocka select BLK_DEV_DM_BUILTIN 204f26c5719SDan Williams select DAX 2051da177e4SLinus Torvalds ---help--- 2061da177e4SLinus Torvalds Device-mapper is a low level volume manager. It works by allowing 2071da177e4SLinus Torvalds people to specify mappings for ranges of logical sectors. Various 2081da177e4SLinus Torvalds mapping types are available, in addition people may write their own 2091da177e4SLinus Torvalds modules containing custom mappings if they wish. 2101da177e4SLinus Torvalds 2111da177e4SLinus Torvalds Higher level volume managers such as LVM2 use this driver. 2121da177e4SLinus Torvalds 2131da177e4SLinus Torvalds To compile this as a module, choose M here: the module will be 2141da177e4SLinus Torvalds called dm-mod. 2151da177e4SLinus Torvalds 2161da177e4SLinus Torvalds If unsure, say N. 2171da177e4SLinus Torvalds 21817e149b8SMike Snitzerconfig DM_MQ_DEFAULT 21917e149b8SMike Snitzer bool "request-based DM: use blk-mq I/O path by default" 22017e149b8SMike Snitzer depends on BLK_DEV_DM 22117e149b8SMike Snitzer ---help--- 22217e149b8SMike Snitzer This option enables the blk-mq based I/O path for request-based 22317e149b8SMike Snitzer DM devices by default. With the option the dm_mod.use_blk_mq 22417e149b8SMike Snitzer module/boot option defaults to Y, without it to N, but it can 22517e149b8SMike Snitzer still be overriden either way. 22617e149b8SMike Snitzer 22717e149b8SMike Snitzer If unsure say N. 22817e149b8SMike Snitzer 229cc109201SBryn Reevesconfig DM_DEBUG 2306341e62bSChristoph Jaeger bool "Device mapper debugging support" 2310149e57fSAlasdair G Kergon depends on BLK_DEV_DM 232cc109201SBryn Reeves ---help--- 233cc109201SBryn Reeves Enable this for messages that may help debug device-mapper problems. 234cc109201SBryn Reeves 235cc109201SBryn Reeves If unsure, say N. 236cc109201SBryn Reeves 23795d402f0SMikulas Patockaconfig DM_BUFIO 23895d402f0SMikulas Patocka tristate 239d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 24095d402f0SMikulas Patocka ---help--- 24195d402f0SMikulas Patocka This interface allows you to do buffered I/O on a device and acts 24295d402f0SMikulas Patocka as a cache, holding recently-read blocks in memory and performing 24395d402f0SMikulas Patocka delayed writes. 24495d402f0SMikulas Patocka 2452e8ed711SJoe Thornberconfig DM_DEBUG_BLOCK_MANAGER_LOCKING 2462e8ed711SJoe Thornber bool "Block manager locking" 2472e8ed711SJoe Thornber depends on DM_BUFIO 2482e8ed711SJoe Thornber ---help--- 2492e8ed711SJoe Thornber Block manager locking can catch various metadata corruption issues. 2502e8ed711SJoe Thornber 2512e8ed711SJoe Thornber If unsure, say N. 2522e8ed711SJoe Thornber 25386bad0c7SMikulas Patockaconfig DM_DEBUG_BLOCK_STACK_TRACING 25486bad0c7SMikulas Patocka bool "Keep stack trace of persistent data block lock holders" 2552e8ed711SJoe Thornber depends on STACKTRACE_SUPPORT && DM_DEBUG_BLOCK_MANAGER_LOCKING 25686bad0c7SMikulas Patocka select STACKTRACE 25786bad0c7SMikulas Patocka ---help--- 25886bad0c7SMikulas Patocka Enable this for messages that may help debug problems with the 25986bad0c7SMikulas Patocka block manager locking used by thin provisioning and caching. 26086bad0c7SMikulas Patocka 26186bad0c7SMikulas Patocka If unsure, say N. 2623f068040SMike Snitzer 2634f81a417SMike Snitzerconfig DM_BIO_PRISON 2644f81a417SMike Snitzer tristate 265d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 2664f81a417SMike Snitzer ---help--- 2674f81a417SMike Snitzer Some bio locking schemes used by other device-mapper targets 2684f81a417SMike Snitzer including thin provisioning. 2694f81a417SMike Snitzer 270991d9fa0SJoe Thornbersource "drivers/md/persistent-data/Kconfig" 271991d9fa0SJoe Thornber 272*18a5bf27SScott Bauerconfig DM_UNSTRIPED 273*18a5bf27SScott Bauer tristate "Unstriped target" 274*18a5bf27SScott Bauer depends on BLK_DEV_DM 275*18a5bf27SScott Bauer ---help--- 276*18a5bf27SScott Bauer Unstripes I/O so it is issued solely on a single drive in a HW 277*18a5bf27SScott Bauer RAID0 or dm-striped target. 278*18a5bf27SScott Bauer 2791da177e4SLinus Torvaldsconfig DM_CRYPT 2801da177e4SLinus Torvalds tristate "Crypt target support" 2810149e57fSAlasdair G Kergon depends on BLK_DEV_DM 2821da177e4SLinus Torvalds select CRYPTO 2833263263fSHerbert Xu select CRYPTO_CBC 2841da177e4SLinus Torvalds ---help--- 2851da177e4SLinus Torvalds This device-mapper target allows you to create a device that 2861da177e4SLinus Torvalds transparently encrypts the data on it. You'll need to activate 2871da177e4SLinus Torvalds the ciphers you're going to use in the cryptoapi configuration. 2881da177e4SLinus Torvalds 289cf352487SLoic Pefferkorn For further information on dm-crypt and userspace tools see: 2906ed443c0SBaruch Siach <https://gitlab.com/cryptsetup/cryptsetup/wikis/DMCrypt> 2911da177e4SLinus Torvalds 2921da177e4SLinus Torvalds To compile this code as a module, choose M here: the module will 2931da177e4SLinus Torvalds be called dm-crypt. 2941da177e4SLinus Torvalds 2951da177e4SLinus Torvalds If unsure, say N. 2961da177e4SLinus Torvalds 2971da177e4SLinus Torvaldsconfig DM_SNAPSHOT 2980149e57fSAlasdair G Kergon tristate "Snapshot target" 2990149e57fSAlasdair G Kergon depends on BLK_DEV_DM 30055494bf2SMikulas Patocka select DM_BUFIO 3011da177e4SLinus Torvalds ---help--- 3024d2554d0SJustin Piszcz Allow volume managers to take writable snapshots of a device. 3031da177e4SLinus Torvalds 304991d9fa0SJoe Thornberconfig DM_THIN_PROVISIONING 305d57916a0SAlasdair G Kergon tristate "Thin provisioning target" 306d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 307991d9fa0SJoe Thornber select DM_PERSISTENT_DATA 3084f81a417SMike Snitzer select DM_BIO_PRISON 309991d9fa0SJoe Thornber ---help--- 310991d9fa0SJoe Thornber Provides thin provisioning and snapshots that share a data store. 311991d9fa0SJoe Thornber 312c6b4fcbaSJoe Thornberconfig DM_CACHE 313c6b4fcbaSJoe Thornber tristate "Cache target (EXPERIMENTAL)" 314c6b4fcbaSJoe Thornber depends on BLK_DEV_DM 315c6b4fcbaSJoe Thornber default n 316c6b4fcbaSJoe Thornber select DM_PERSISTENT_DATA 317c6b4fcbaSJoe Thornber select DM_BIO_PRISON 318c6b4fcbaSJoe Thornber ---help--- 319c6b4fcbaSJoe Thornber dm-cache attempts to improve performance of a block device by 320c6b4fcbaSJoe Thornber moving frequently used data to a smaller, higher performance 321c6b4fcbaSJoe Thornber device. Different 'policy' plugins can be used to change the 322c6b4fcbaSJoe Thornber algorithms used to select which blocks are promoted, demoted, 323c6b4fcbaSJoe Thornber cleaned etc. It supports writeback and writethrough modes. 324c6b4fcbaSJoe Thornber 32566a63635SJoe Thornberconfig DM_CACHE_SMQ 32666a63635SJoe Thornber tristate "Stochastic MQ Cache Policy (EXPERIMENTAL)" 32766a63635SJoe Thornber depends on DM_CACHE 32866a63635SJoe Thornber default y 32966a63635SJoe Thornber ---help--- 33066a63635SJoe Thornber A cache policy that uses a multiqueue ordered by recent hits 33166a63635SJoe Thornber to select which blocks should be promoted and demoted. 33266a63635SJoe Thornber This is meant to be a general purpose policy. It prioritises 33366a63635SJoe Thornber reads over writes. This SMQ policy (vs MQ) offers the promise 33466a63635SJoe Thornber of less memory utilization, improved performance and increased 33566a63635SJoe Thornber adaptability in the face of changing workloads. 33666a63635SJoe Thornber 337eec40579SJoe Thornberconfig DM_ERA 338eec40579SJoe Thornber tristate "Era target (EXPERIMENTAL)" 339eec40579SJoe Thornber depends on BLK_DEV_DM 340eec40579SJoe Thornber default n 341eec40579SJoe Thornber select DM_PERSISTENT_DATA 342eec40579SJoe Thornber select DM_BIO_PRISON 343eec40579SJoe Thornber ---help--- 344eec40579SJoe Thornber dm-era tracks which parts of a block device are written to 345eec40579SJoe Thornber over time. Useful for maintaining cache coherency when using 346eec40579SJoe Thornber vendor snapshots. 347eec40579SJoe Thornber 3481da177e4SLinus Torvaldsconfig DM_MIRROR 3490149e57fSAlasdair G Kergon tristate "Mirror target" 3500149e57fSAlasdair G Kergon depends on BLK_DEV_DM 3511da177e4SLinus Torvalds ---help--- 3521da177e4SLinus Torvalds Allow volume managers to mirror logical volumes, also 3531da177e4SLinus Torvalds needed for live data migration tools such as 'pvmove'. 3541da177e4SLinus Torvalds 3555442851eSMikulas Patockaconfig DM_LOG_USERSPACE 3565442851eSMikulas Patocka tristate "Mirror userspace logging" 3575442851eSMikulas Patocka depends on DM_MIRROR && NET 3585442851eSMikulas Patocka select CONNECTOR 3595442851eSMikulas Patocka ---help--- 3605442851eSMikulas Patocka The userspace logging module provides a mechanism for 3615442851eSMikulas Patocka relaying the dm-dirty-log API to userspace. Log designs 3625442851eSMikulas Patocka which are more suited to userspace implementation (e.g. 3635442851eSMikulas Patocka shared storage logs) or experimental logs can be implemented 3645442851eSMikulas Patocka by leveraging this framework. 3655442851eSMikulas Patocka 3669d09e663SNeilBrownconfig DM_RAID 367d9f691c3SNeilBrown tristate "RAID 1/4/5/6/10 target" 368035220b3SAlasdair G Kergon depends on BLK_DEV_DM 3697b81ef8bSMikulas Patocka select MD_RAID0 370b12d437bSJonathan Brassow select MD_RAID1 371d9f691c3SNeilBrown select MD_RAID10 3729d09e663SNeilBrown select MD_RAID456 3739d09e663SNeilBrown select BLK_DEV_MD 3749d09e663SNeilBrown ---help--- 375d9f691c3SNeilBrown A dm target that supports RAID1, RAID10, RAID4, RAID5 and RAID6 mappings 3769d09e663SNeilBrown 3779d09e663SNeilBrown A RAID-5 set of N drives with a capacity of C MB per drive provides 3789d09e663SNeilBrown the capacity of C * (N - 1) MB, and protects against a failure 3799d09e663SNeilBrown of a single drive. For a given sector (row) number, (N - 1) drives 3809d09e663SNeilBrown contain data sectors, and one drive contains the parity protection. 3819d09e663SNeilBrown For a RAID-4 set, the parity blocks are present on a single drive, 3829d09e663SNeilBrown while a RAID-5 set distributes the parity across the drives in one 3839d09e663SNeilBrown of the available parity distribution methods. 3849d09e663SNeilBrown 3859d09e663SNeilBrown A RAID-6 set of N drives with a capacity of C MB per drive 3869d09e663SNeilBrown provides the capacity of C * (N - 2) MB, and protects 3879d09e663SNeilBrown against a failure of any two drives. For a given sector 3889d09e663SNeilBrown (row) number, (N - 2) drives contain data sectors, and two 3899d09e663SNeilBrown drives contains two independent redundancy syndromes. Like 3909d09e663SNeilBrown RAID-5, RAID-6 distributes the syndromes across the drives 3919d09e663SNeilBrown in one of the available parity distribution methods. 3929d09e663SNeilBrown 3931da177e4SLinus Torvaldsconfig DM_ZERO 3940149e57fSAlasdair G Kergon tristate "Zero target" 3950149e57fSAlasdair G Kergon depends on BLK_DEV_DM 3961da177e4SLinus Torvalds ---help--- 3971da177e4SLinus Torvalds A target that discards writes, and returns all zeroes for 3981da177e4SLinus Torvalds reads. Useful in some recovery situations. 3991da177e4SLinus Torvalds 4001da177e4SLinus Torvaldsconfig DM_MULTIPATH 4010149e57fSAlasdair G Kergon tristate "Multipath target" 4020149e57fSAlasdair G Kergon depends on BLK_DEV_DM 403fe9233fbSChandra Seetharaman # nasty syntax but means make DM_MULTIPATH independent 404fe9233fbSChandra Seetharaman # of SCSI_DH if the latter isn't defined but if 405fe9233fbSChandra Seetharaman # it is, DM_MULTIPATH must depend on it. We get a build 406fe9233fbSChandra Seetharaman # error if SCSI_DH=m and DM_MULTIPATH=y 407294ab783SChristoph Hellwig depends on !SCSI_DH || SCSI 4081da177e4SLinus Torvalds ---help--- 4091da177e4SLinus Torvalds Allow volume managers to support multipath hardware. 4101da177e4SLinus Torvalds 411fd5e0339SKiyoshi Uedaconfig DM_MULTIPATH_QL 412fd5e0339SKiyoshi Ueda tristate "I/O Path Selector based on the number of in-flight I/Os" 413fd5e0339SKiyoshi Ueda depends on DM_MULTIPATH 414fd5e0339SKiyoshi Ueda ---help--- 415fd5e0339SKiyoshi Ueda This path selector is a dynamic load balancer which selects 416fd5e0339SKiyoshi Ueda the path with the least number of in-flight I/Os. 417fd5e0339SKiyoshi Ueda 418fd5e0339SKiyoshi Ueda If unsure, say N. 419fd5e0339SKiyoshi Ueda 420f392ba88SKiyoshi Uedaconfig DM_MULTIPATH_ST 421f392ba88SKiyoshi Ueda tristate "I/O Path Selector based on the service time" 422f392ba88SKiyoshi Ueda depends on DM_MULTIPATH 423f392ba88SKiyoshi Ueda ---help--- 424f392ba88SKiyoshi Ueda This path selector is a dynamic load balancer which selects 425f392ba88SKiyoshi Ueda the path expected to complete the incoming I/O in the shortest 426f392ba88SKiyoshi Ueda time. 427f392ba88SKiyoshi Ueda 428f392ba88SKiyoshi Ueda If unsure, say N. 429f392ba88SKiyoshi Ueda 43026b9f228SHeinz Mauelshagenconfig DM_DELAY 431d57916a0SAlasdair G Kergon tristate "I/O delaying target" 432d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 43326b9f228SHeinz Mauelshagen ---help--- 43426b9f228SHeinz Mauelshagen A target that delays reads and/or writes and can send 43526b9f228SHeinz Mauelshagen them to different devices. Useful for testing. 43626b9f228SHeinz Mauelshagen 43726b9f228SHeinz Mauelshagen If unsure, say N. 43826b9f228SHeinz Mauelshagen 43951e5b2bdSMike Andersonconfig DM_UEVENT 440e0b215daSAlasdair G Kergon bool "DM uevents" 441e0b215daSAlasdair G Kergon depends on BLK_DEV_DM 44251e5b2bdSMike Anderson ---help--- 44351e5b2bdSMike Anderson Generate udev events for DM events. 44451e5b2bdSMike Anderson 4453407ef52SJosef Bacikconfig DM_FLAKEY 446d57916a0SAlasdair G Kergon tristate "Flakey target" 447d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 4483407ef52SJosef Bacik ---help--- 4493407ef52SJosef Bacik A target that intermittently fails I/O for debugging purposes. 4503407ef52SJosef Bacik 451a4ffc152SMikulas Patockaconfig DM_VERITY 452d57916a0SAlasdair G Kergon tristate "Verity target support" 453d57916a0SAlasdair G Kergon depends on BLK_DEV_DM 454a4ffc152SMikulas Patocka select CRYPTO 455a4ffc152SMikulas Patocka select CRYPTO_HASH 456a4ffc152SMikulas Patocka select DM_BUFIO 457a4ffc152SMikulas Patocka ---help--- 458a4ffc152SMikulas Patocka This device-mapper target creates a read-only device that 459a4ffc152SMikulas Patocka transparently validates the data on one underlying device against 460a4ffc152SMikulas Patocka a pre-generated tree of cryptographic checksums stored on a second 461a4ffc152SMikulas Patocka device. 462a4ffc152SMikulas Patocka 463a4ffc152SMikulas Patocka You'll need to activate the digests you're going to use in the 464a4ffc152SMikulas Patocka cryptoapi configuration. 465a4ffc152SMikulas Patocka 466a4ffc152SMikulas Patocka To compile this code as a module, choose M here: the module will 467a4ffc152SMikulas Patocka be called dm-verity. 468a4ffc152SMikulas Patocka 469a4ffc152SMikulas Patocka If unsure, say N. 470a4ffc152SMikulas Patocka 471a739ff3fSSami Tolvanenconfig DM_VERITY_FEC 472a739ff3fSSami Tolvanen bool "Verity forward error correction support" 473a739ff3fSSami Tolvanen depends on DM_VERITY 474a739ff3fSSami Tolvanen select REED_SOLOMON 475a739ff3fSSami Tolvanen select REED_SOLOMON_DEC8 476a739ff3fSSami Tolvanen ---help--- 477a739ff3fSSami Tolvanen Add forward error correction support to dm-verity. This option 478a739ff3fSSami Tolvanen makes it possible to use pre-generated error correction data to 479a739ff3fSSami Tolvanen recover from corrupted blocks. 480a739ff3fSSami Tolvanen 481a739ff3fSSami Tolvanen If unsure, say N. 482a739ff3fSSami Tolvanen 4839d0eb0abSJim Ramsayconfig DM_SWITCH 4849d0eb0abSJim Ramsay tristate "Switch target support (EXPERIMENTAL)" 4859d0eb0abSJim Ramsay depends on BLK_DEV_DM 4869d0eb0abSJim Ramsay ---help--- 4879d0eb0abSJim Ramsay This device-mapper target creates a device that supports an arbitrary 4889d0eb0abSJim Ramsay mapping of fixed-size regions of I/O across a fixed set of paths. 4899d0eb0abSJim Ramsay The path used for any specific region can be switched dynamically 4909d0eb0abSJim Ramsay by sending the target a message. 4919d0eb0abSJim Ramsay 4929d0eb0abSJim Ramsay To compile this code as a module, choose M here: the module will 4939d0eb0abSJim Ramsay be called dm-switch. 4949d0eb0abSJim Ramsay 4959d0eb0abSJim Ramsay If unsure, say N. 4969d0eb0abSJim Ramsay 4970e9cebe7SJosef Bacikconfig DM_LOG_WRITES 4980e9cebe7SJosef Bacik tristate "Log writes target support" 4990e9cebe7SJosef Bacik depends on BLK_DEV_DM 5000e9cebe7SJosef Bacik ---help--- 5010e9cebe7SJosef Bacik This device-mapper target takes two devices, one device to use 5020e9cebe7SJosef Bacik normally, one to log all write operations done to the first device. 5030e9cebe7SJosef Bacik This is for use by file system developers wishing to verify that 50457d42487SGeert Uytterhoeven their fs is writing a consistent file system at all times by allowing 5050e9cebe7SJosef Bacik them to replay the log in a variety of ways and to check the 5060e9cebe7SJosef Bacik contents. 5070e9cebe7SJosef Bacik 5080e9cebe7SJosef Bacik To compile this code as a module, choose M here: the module will 5090e9cebe7SJosef Bacik be called dm-log-writes. 5100e9cebe7SJosef Bacik 5110e9cebe7SJosef Bacik If unsure, say N. 5120e9cebe7SJosef Bacik 5137eada909SMikulas Patockaconfig DM_INTEGRITY 5147ab84db6SMike Snitzer tristate "Integrity target support" 5157eada909SMikulas Patocka depends on BLK_DEV_DM 5167eada909SMikulas Patocka select BLK_DEV_INTEGRITY 5177eada909SMikulas Patocka select DM_BUFIO 5187eada909SMikulas Patocka select CRYPTO 5197eada909SMikulas Patocka select ASYNC_XOR 5207eada909SMikulas Patocka ---help--- 5217ab84db6SMike Snitzer This device-mapper target emulates a block device that has 5227ab84db6SMike Snitzer additional per-sector tags that can be used for storing 5237ab84db6SMike Snitzer integrity information. 5247ab84db6SMike Snitzer 5257ab84db6SMike Snitzer This integrity target is used with the dm-crypt target to 5267ab84db6SMike Snitzer provide authenticated disk encryption or it can be used 5277ab84db6SMike Snitzer standalone. 5287ab84db6SMike Snitzer 5297ab84db6SMike Snitzer To compile this code as a module, choose M here: the module will 5307ab84db6SMike Snitzer be called dm-integrity. 5317ab84db6SMike Snitzer 5323b1a94c8SDamien Le Moalconfig DM_ZONED 5333b1a94c8SDamien Le Moal tristate "Drive-managed zoned block device target support" 5343b1a94c8SDamien Le Moal depends on BLK_DEV_DM 5353b1a94c8SDamien Le Moal depends on BLK_DEV_ZONED 5363b1a94c8SDamien Le Moal ---help--- 5373b1a94c8SDamien Le Moal This device-mapper target takes a host-managed or host-aware zoned 5383b1a94c8SDamien Le Moal block device and exposes most of its capacity as a regular block 5393b1a94c8SDamien Le Moal device (drive-managed zoned block device) without any write 5403b1a94c8SDamien Le Moal constraints. This is mainly intended for use with file systems that 5413b1a94c8SDamien Le Moal do not natively support zoned block devices but still want to 5423b1a94c8SDamien Le Moal benefit from the increased capacity offered by SMR disks. Other uses 5433b1a94c8SDamien Le Moal by applications using raw block devices (for example object stores) 5443b1a94c8SDamien Le Moal are also possible. 5453b1a94c8SDamien Le Moal 5463b1a94c8SDamien Le Moal To compile this code as a module, choose M here: the module will 5473b1a94c8SDamien Le Moal be called dm-zoned. 5483b1a94c8SDamien Le Moal 5497ab84db6SMike Snitzer If unsure, say N. 5507eada909SMikulas Patocka 551afd44034SJan Engelhardtendif # MD 552