Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Block device driver configuration
  4. #
  5. menuconfig BLK_DEV
  6. bool "Block devices"
  7. depends on BLOCK
  8. default y
  9. ---help---
  10. Say Y here to get to see options for various different block device
  11. drivers. This option alone does not add any kernel code.
  12. If you say N, all options in this submenu will be skipped and disabled;
  13. only do this if you know what you are doing.
  14. if BLK_DEV
  15. config BLK_DEV_NULL_BLK
  16. tristate "Null test block driver"
  17. select CONFIGFS_FS
  18. config BLK_DEV_NULL_BLK_FAULT_INJECTION
  19. bool "Support fault injection for Null test block driver"
  20. depends on BLK_DEV_NULL_BLK && FAULT_INJECTION
  21. config BLK_DEV_FD
  22. tristate "Normal floppy disk support"
  23. depends on ARCH_MAY_HAVE_PC_FDC
  24. ---help---
  25. If you want to use the floppy disk drive(s) of your PC under Linux,
  26. say Y. Information about this driver, especially important for IBM
  27. Thinkpad users, is contained in
  28. <file:Documentation/blockdev/floppy.txt>.
  29. That file also contains the location of the Floppy driver FAQ as
  30. well as location of the fdutils package used to configure additional
  31. parameters of the driver at run time.
  32. To compile this driver as a module, choose M here: the
  33. module will be called floppy.
  34. config AMIGA_FLOPPY
  35. tristate "Amiga floppy support"
  36. depends on AMIGA
  37. config ATARI_FLOPPY
  38. tristate "Atari floppy support"
  39. depends on ATARI
  40. config MAC_FLOPPY
  41. tristate "Support for PowerMac floppy"
  42. depends on PPC_PMAC && !PPC_PMAC64
  43. help
  44. If you have a SWIM-3 (Super Woz Integrated Machine 3; from Apple)
  45. floppy controller, say Y here. Most commonly found in PowerMacs.
  46. config BLK_DEV_SWIM
  47. tristate "Support for SWIM Macintosh floppy"
  48. depends on M68K && MAC
  49. help
  50. You should select this option if you want floppy support
  51. and you don't have a II, IIfx, Q900, Q950 or AV series.
  52. config AMIGA_Z2RAM
  53. tristate "Amiga Zorro II ramdisk support"
  54. depends on ZORRO
  55. help
  56. This enables support for using Chip RAM and Zorro II RAM as a
  57. ramdisk or as a swap partition. Say Y if you want to include this
  58. driver in the kernel.
  59. To compile this driver as a module, choose M here: the
  60. module will be called z2ram.
  61. config CDROM
  62. tristate
  63. select BLK_SCSI_REQUEST
  64. config GDROM
  65. tristate "SEGA Dreamcast GD-ROM drive"
  66. depends on SH_DREAMCAST
  67. select CDROM
  68. help
  69. A standard SEGA Dreamcast comes with a modified CD ROM drive called a
  70. "GD-ROM" by SEGA to signify it is capable of reading special disks
  71. with up to 1 GB of data. This drive will also read standard CD ROM
  72. disks. Select this option to access any disks in your GD ROM drive.
  73. Most users will want to say "Y" here.
  74. You can also build this as a module which will be called gdrom.
  75. config PARIDE
  76. tristate "Parallel port IDE device support"
  77. depends on PARPORT_PC
  78. ---help---
  79. There are many external CD-ROM and disk devices that connect through
  80. your computer's parallel port. Most of them are actually IDE devices
  81. using a parallel port IDE adapter. This option enables the PARIDE
  82. subsystem which contains drivers for many of these external drives.
  83. Read <file:Documentation/blockdev/paride.txt> for more information.
  84. If you have said Y to the "Parallel-port support" configuration
  85. option, you may share a single port between your printer and other
  86. parallel port devices. Answer Y to build PARIDE support into your
  87. kernel, or M if you would like to build it as a loadable module. If
  88. your parallel port support is in a loadable module, you must build
  89. PARIDE as a module. If you built PARIDE support into your kernel,
  90. you may still build the individual protocol modules and high-level
  91. drivers as loadable modules. If you build this support as a module,
  92. it will be called paride.
  93. To use the PARIDE support, you must say Y or M here and also to at
  94. least one high-level driver (e.g. "Parallel port IDE disks",
  95. "Parallel port ATAPI CD-ROMs", "Parallel port ATAPI disks" etc.) and
  96. to at least one protocol driver (e.g. "ATEN EH-100 protocol",
  97. "MicroSolutions backpack protocol", "DataStor Commuter protocol"
  98. etc.).
  99. source "drivers/block/paride/Kconfig"
  100. source "drivers/block/mtip32xx/Kconfig"
  101. source "drivers/block/zram/Kconfig"
  102. config BLK_DEV_DAC960
  103. tristate "Mylex DAC960/DAC1100 PCI RAID Controller support"
  104. depends on PCI
  105. help
  106. This driver adds support for the Mylex DAC960, AcceleRAID, and
  107. eXtremeRAID PCI RAID controllers. See the file
  108. <file:Documentation/blockdev/README.DAC960> for further information
  109. about this driver.
  110. To compile this driver as a module, choose M here: the
  111. module will be called DAC960.
  112. config BLK_DEV_UMEM
  113. tristate "Micro Memory MM5415 Battery Backed RAM support"
  114. depends on PCI
  115. ---help---
  116. Saying Y here will include support for the MM5415 family of
  117. battery backed (Non-volatile) RAM cards.
  118. <http://www.umem.com/>
  119. The cards appear as block devices that can be partitioned into
  120. as many as 15 partitions.
  121. To compile this driver as a module, choose M here: the
  122. module will be called umem.
  123. The umem driver has not yet been allocated a MAJOR number, so
  124. one is chosen dynamically.
  125. config BLK_DEV_UBD
  126. bool "Virtual block device"
  127. depends on UML
  128. ---help---
  129. The User-Mode Linux port includes a driver called UBD which will let
  130. you access arbitrary files on the host computer as block devices.
  131. Unless you know that you do not need such virtual block devices say
  132. Y here.
  133. config BLK_DEV_UBD_SYNC
  134. bool "Always do synchronous disk IO for UBD"
  135. depends on BLK_DEV_UBD
  136. ---help---
  137. Writes to the virtual block device are not immediately written to the
  138. host's disk; this may cause problems if, for example, the User-Mode
  139. Linux 'Virtual Machine' uses a journalling filesystem and the host
  140. computer crashes.
  141. Synchronous operation (i.e. always writing data to the host's disk
  142. immediately) is configurable on a per-UBD basis by using a special
  143. kernel command line option. Alternatively, you can say Y here to
  144. turn on synchronous operation by default for all block devices.
  145. If you're running a journalling file system (like reiserfs, for
  146. example) in your virtual machine, you will want to say Y here. If
  147. you care for the safety of the data in your virtual machine, Y is a
  148. wise choice too. In all other cases (for example, if you're just
  149. playing around with User-Mode Linux) you can choose N.
  150. config BLK_DEV_COW_COMMON
  151. bool
  152. default BLK_DEV_UBD
  153. config BLK_DEV_LOOP
  154. tristate "Loopback device support"
  155. ---help---
  156. Saying Y here will allow you to use a regular file as a block
  157. device; you can then create a file system on that block device and
  158. mount it just as you would mount other block devices such as hard
  159. drive partitions, CD-ROM drives or floppy drives. The loop devices
  160. are block special device files with major number 7 and typically
  161. called /dev/loop0, /dev/loop1 etc.
  162. This is useful if you want to check an ISO 9660 file system before
  163. burning the CD, or if you want to use floppy images without first
  164. writing them to floppy. Furthermore, some Linux distributions avoid
  165. the need for a dedicated Linux partition by keeping their complete
  166. root file system inside a DOS FAT file using this loop device
  167. driver.
  168. To use the loop device, you need the losetup utility, found in the
  169. util-linux package, see
  170. <https://www.kernel.org/pub/linux/utils/util-linux/>.
  171. The loop device driver can also be used to "hide" a file system in
  172. a disk partition, floppy, or regular file, either using encryption
  173. (scrambling the data) or steganography (hiding the data in the low
  174. bits of, say, a sound file). This is also safe if the file resides
  175. on a remote file server.
  176. There are several ways of encrypting disks. Some of these require
  177. kernel patches. The vanilla kernel offers the cryptoloop option
  178. and a Device Mapper target (which is superior, as it supports all
  179. file systems). If you want to use the cryptoloop, say Y to both
  180. LOOP and CRYPTOLOOP, and make sure you have a recent (version 2.12
  181. or later) version of util-linux. Additionally, be aware that
  182. the cryptoloop is not safe for storing journaled filesystems.
  183. Note that this loop device has nothing to do with the loopback
  184. device used for network connections from the machine to itself.
  185. To compile this driver as a module, choose M here: the
  186. module will be called loop.
  187. Most users will answer N here.
  188. config BLK_DEV_LOOP_MIN_COUNT
  189. int "Number of loop devices to pre-create at init time"
  190. depends on BLK_DEV_LOOP
  191. default 8
  192. help
  193. Static number of loop devices to be unconditionally pre-created
  194. at init time.
  195. This default value can be overwritten on the kernel command
  196. line or with module-parameter loop.max_loop.
  197. The historic default is 8. If a late 2011 version of losetup(8)
  198. is used, it can be set to 0, since needed loop devices can be
  199. dynamically allocated with the /dev/loop-control interface.
  200. config BLK_DEV_CRYPTOLOOP
  201. tristate "Cryptoloop Support"
  202. select CRYPTO
  203. select CRYPTO_CBC
  204. depends on BLK_DEV_LOOP
  205. ---help---
  206. Say Y here if you want to be able to use the ciphers that are
  207. provided by the CryptoAPI as loop transformation. This might be
  208. used as hard disk encryption.
  209. WARNING: This device is not safe for journaled file systems like
  210. ext3 or Reiserfs. Please use the Device Mapper crypto module
  211. instead, which can be configured to be on-disk compatible with the
  212. cryptoloop device.
  213. source "drivers/block/drbd/Kconfig"
  214. config BLK_DEV_NBD
  215. tristate "Network block device support"
  216. depends on NET
  217. ---help---
  218. Saying Y here will allow your computer to be a client for network
  219. block devices, i.e. it will be able to use block devices exported by
  220. servers (mount file systems on them etc.). Communication between
  221. client and server works over TCP/IP networking, but to the client
  222. program this is hidden: it looks like a regular local file access to
  223. a block device special file such as /dev/nd0.
  224. Network block devices also allows you to run a block-device in
  225. userland (making server and client physically the same computer,
  226. communicating using the loopback network device).
  227. Read <file:Documentation/blockdev/nbd.txt> for more information,
  228. especially about where to find the server code, which runs in user
  229. space and does not need special kernel support.
  230. Note that this has nothing to do with the network file systems NFS
  231. or Coda; you can say N here even if you intend to use NFS or Coda.
  232. To compile this driver as a module, choose M here: the
  233. module will be called nbd.
  234. If unsure, say N.
  235. config BLK_DEV_SKD
  236. tristate "STEC S1120 Block Driver"
  237. depends on PCI
  238. depends on 64BIT
  239. ---help---
  240. Saying Y or M here will enable support for the
  241. STEC, Inc. S1120 PCIe SSD.
  242. Use device /dev/skd$N amd /dev/skd$Np$M.
  243. config BLK_DEV_SX8
  244. tristate "Promise SATA SX8 support"
  245. depends on PCI
  246. ---help---
  247. Saying Y or M here will enable support for the
  248. Promise SATA SX8 controllers.
  249. Use devices /dev/sx8/$N and /dev/sx8/$Np$M.
  250. config BLK_DEV_RAM
  251. tristate "RAM block device support"
  252. ---help---
  253. Saying Y here will allow you to use a portion of your RAM memory as
  254. a block device, so that you can make file systems on it, read and
  255. write to it and do all the other things that you can do with normal
  256. block devices (such as hard drives). It is usually used to load and
  257. store a copy of a minimal root file system off of a floppy into RAM
  258. during the initial install of Linux.
  259. Note that the kernel command line option "ramdisk=XX" is now obsolete.
  260. For details, read <file:Documentation/blockdev/ramdisk.txt>.
  261. To compile this driver as a module, choose M here: the
  262. module will be called brd. An alias "rd" has been defined
  263. for historical reasons.
  264. Most normal users won't need the RAM disk functionality, and can
  265. thus say N here.
  266. config BLK_DEV_RAM_COUNT
  267. int "Default number of RAM disks"
  268. default "16"
  269. depends on BLK_DEV_RAM
  270. help
  271. The default value is 16 RAM disks. Change this if you know what you
  272. are doing. If you boot from a filesystem that needs to be extracted
  273. in memory, you will need at least one RAM disk (e.g. root on cramfs).
  274. config BLK_DEV_RAM_SIZE
  275. int "Default RAM disk size (kbytes)"
  276. depends on BLK_DEV_RAM
  277. default "4096"
  278. help
  279. The default value is 4096 kilobytes. Only change this if you know
  280. what you are doing.
  281. config CDROM_PKTCDVD
  282. tristate "Packet writing on CD/DVD media (DEPRECATED)"
  283. depends on !UML
  284. select CDROM
  285. select BLK_SCSI_REQUEST
  286. help
  287. Note: This driver is deprecated and will be removed from the
  288. kernel in the near future!
  289. If you have a CDROM/DVD drive that supports packet writing, say
  290. Y to include support. It should work with any MMC/Mt Fuji
  291. compliant ATAPI or SCSI drive, which is just about any newer
  292. DVD/CD writer.
  293. Currently only writing to CD-RW, DVD-RW, DVD+RW and DVDRAM discs
  294. is possible.
  295. DVD-RW disks must be in restricted overwrite mode.
  296. See the file <file:Documentation/cdrom/packet-writing.txt>
  297. for further information on the use of this driver.
  298. To compile this driver as a module, choose M here: the
  299. module will be called pktcdvd.
  300. config CDROM_PKTCDVD_BUFFERS
  301. int "Free buffers for data gathering"
  302. depends on CDROM_PKTCDVD
  303. default "8"
  304. help
  305. This controls the maximum number of active concurrent packets. More
  306. concurrent packets can increase write performance, but also require
  307. more memory. Each concurrent packet will require approximately 64Kb
  308. of non-swappable kernel memory, memory which will be allocated when
  309. a disc is opened for writing.
  310. config CDROM_PKTCDVD_WCACHE
  311. bool "Enable write caching"
  312. depends on CDROM_PKTCDVD
  313. help
  314. If enabled, write caching will be set for the CD-R/W device. For now
  315. this option is dangerous unless the CD-RW media is known good, as we
  316. don't do deferred write error handling yet.
  317. config ATA_OVER_ETH
  318. tristate "ATA over Ethernet support"
  319. depends on NET
  320. help
  321. This driver provides Support for ATA over Ethernet block
  322. devices like the Coraid EtherDrive (R) Storage Blade.
  323. config SUNVDC
  324. tristate "Sun Virtual Disk Client support"
  325. depends on SUN_LDOMS
  326. help
  327. Support for virtual disk devices as a client under Sun
  328. Logical Domains.
  329. source "drivers/s390/block/Kconfig"
  330. config XILINX_SYSACE
  331. tristate "Xilinx SystemACE support"
  332. depends on 4xx || MICROBLAZE
  333. help
  334. Include support for the Xilinx SystemACE CompactFlash interface
  335. config XEN_BLKDEV_FRONTEND
  336. tristate "Xen virtual block device support"
  337. depends on XEN
  338. default y
  339. select XEN_XENBUS_FRONTEND
  340. help
  341. This driver implements the front-end of the Xen virtual
  342. block device driver. It communicates with a back-end driver
  343. in another domain which drives the actual block device.
  344. config XEN_BLKDEV_BACKEND
  345. tristate "Xen block-device backend driver"
  346. depends on XEN_BACKEND
  347. help
  348. The block-device backend driver allows the kernel to export its
  349. block devices to other guests via a high-performance shared-memory
  350. interface.
  351. The corresponding Linux frontend driver is enabled by the
  352. CONFIG_XEN_BLKDEV_FRONTEND configuration option.
  353. The backend driver attaches itself to a any block device specified
  354. in the XenBus configuration. There are no limits to what the block
  355. device as long as it has a major and minor.
  356. If you are compiling a kernel to run in a Xen block backend driver
  357. domain (often this is domain 0) you should say Y here. To
  358. compile this driver as a module, chose M here: the module
  359. will be called xen-blkback.
  360. config VIRTIO_BLK
  361. tristate "Virtio block driver"
  362. depends on VIRTIO
  363. ---help---
  364. This is the virtual block driver for virtio. It can be used with
  365. QEMU based VMMs (like KVM or Xen). Say Y or M.
  366. config VIRTIO_BLK_SCSI
  367. bool "SCSI passthrough request for the Virtio block driver"
  368. depends on VIRTIO_BLK
  369. select BLK_SCSI_REQUEST
  370. ---help---
  371. Enable support for SCSI passthrough (e.g. the SG_IO ioctl) on
  372. virtio-blk devices. This is only supported for the legacy
  373. virtio protocol and not enabled by default by any hypervisor.
  374. You probably want to use virtio-scsi instead.
  375. config BLK_DEV_RBD
  376. tristate "Rados block device (RBD)"
  377. depends on INET && BLOCK
  378. select CEPH_LIB
  379. select LIBCRC32C
  380. select CRYPTO_AES
  381. select CRYPTO
  382. default n
  383. help
  384. Say Y here if you want include the Rados block device, which stripes
  385. a block device over objects stored in the Ceph distributed object
  386. store.
  387. More information at http://ceph.newdream.net/.
  388. If unsure, say N.
  389. config BLK_DEV_RSXX
  390. tristate "IBM Flash Adapter 900GB Full Height PCIe Device Driver"
  391. depends on PCI
  392. help
  393. Device driver for IBM's high speed PCIe SSD
  394. storage device: Flash Adapter 900GB Full Height.
  395. To compile this driver as a module, choose M here: the
  396. module will be called rsxx.
  397. endif # BLK_DEV