Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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. source "drivers/block/null_blk/Kconfig"
  16. config BLK_DEV_FD
  17. tristate "Normal floppy disk support"
  18. depends on ARCH_MAY_HAVE_PC_FDC
  19. help
  20. If you want to use the floppy disk drive(s) of your PC under Linux,
  21. say Y. Information about this driver, especially important for IBM
  22. Thinkpad users, is contained in
  23. <file:Documentation/admin-guide/blockdev/floppy.rst>.
  24. That file also contains the location of the Floppy driver FAQ as
  25. well as location of the fdutils package used to configure additional
  26. parameters of the driver at run time.
  27. To compile this driver as a module, choose M here: the
  28. module will be called floppy.
  29. config BLK_DEV_FD_RAWCMD
  30. bool "Support for raw floppy disk commands (DEPRECATED)"
  31. depends on BLK_DEV_FD
  32. help
  33. If you want to use actual physical floppies and expect to do
  34. special low-level hardware accesses to them (access and use
  35. non-standard formats, for example), then enable this.
  36. Note that the code enabled by this option is rarely used and
  37. might be unstable or insecure, and distros should not enable it.
  38. Note: FDRAWCMD is deprecated and will be removed from the kernel
  39. in the near future.
  40. If unsure, say N.
  41. config AMIGA_FLOPPY
  42. tristate "Amiga floppy support"
  43. depends on AMIGA
  44. config ATARI_FLOPPY
  45. tristate "Atari floppy support"
  46. depends on ATARI
  47. config MAC_FLOPPY
  48. tristate "Support for PowerMac floppy"
  49. depends on PPC_PMAC && !PPC_PMAC64
  50. help
  51. If you have a SWIM-3 (Super Woz Integrated Machine 3; from Apple)
  52. floppy controller, say Y here. Most commonly found in PowerMacs.
  53. config BLK_DEV_SWIM
  54. tristate "Support for SWIM Macintosh floppy"
  55. depends on M68K && MAC && !HIGHMEM
  56. help
  57. You should select this option if you want floppy support
  58. and you don't have a II, IIfx, Q900, Q950 or AV series.
  59. config AMIGA_Z2RAM
  60. tristate "Amiga Zorro II ramdisk support"
  61. depends on ZORRO
  62. help
  63. This enables support for using Chip RAM and Zorro II RAM as a
  64. ramdisk or as a swap partition. Say Y if you want to include this
  65. driver in the kernel.
  66. To compile this driver as a module, choose M here: the
  67. module will be called z2ram.
  68. config N64CART
  69. bool "N64 cart support"
  70. depends on MACH_NINTENDO64
  71. help
  72. Support for the N64 cart.
  73. config CDROM
  74. tristate
  75. config GDROM
  76. tristate "SEGA Dreamcast GD-ROM drive"
  77. depends on SH_DREAMCAST
  78. select CDROM
  79. help
  80. A standard SEGA Dreamcast comes with a modified CD ROM drive called a
  81. "GD-ROM" by SEGA to signify it is capable of reading special disks
  82. with up to 1 GB of data. This drive will also read standard CD ROM
  83. disks. Select this option to access any disks in your GD ROM drive.
  84. Most users will want to say "Y" here.
  85. You can also build this as a module which will be called gdrom.
  86. source "drivers/block/mtip32xx/Kconfig"
  87. source "drivers/block/zram/Kconfig"
  88. config BLK_DEV_UBD
  89. bool "Virtual block device"
  90. depends on UML
  91. help
  92. The User-Mode Linux port includes a driver called UBD which will let
  93. you access arbitrary files on the host computer as block devices.
  94. Unless you know that you do not need such virtual block devices say
  95. Y here.
  96. config BLK_DEV_UBD_SYNC
  97. bool "Always do synchronous disk IO for UBD"
  98. depends on BLK_DEV_UBD
  99. help
  100. Writes to the virtual block device are not immediately written to the
  101. host's disk; this may cause problems if, for example, the User-Mode
  102. Linux 'Virtual Machine' uses a journalling filesystem and the host
  103. computer crashes.
  104. Synchronous operation (i.e. always writing data to the host's disk
  105. immediately) is configurable on a per-UBD basis by using a special
  106. kernel command line option. Alternatively, you can say Y here to
  107. turn on synchronous operation by default for all block devices.
  108. If you're running a journalling file system (like reiserfs, for
  109. example) in your virtual machine, you will want to say Y here. If
  110. you care for the safety of the data in your virtual machine, Y is a
  111. wise choice too. In all other cases (for example, if you're just
  112. playing around with User-Mode Linux) you can choose N.
  113. config BLK_DEV_COW_COMMON
  114. bool
  115. default BLK_DEV_UBD
  116. config BLK_DEV_LOOP
  117. tristate "Loopback device support"
  118. help
  119. Saying Y here will allow you to use a regular file as a block
  120. device; you can then create a file system on that block device and
  121. mount it just as you would mount other block devices such as hard
  122. drive partitions, CD-ROM drives or floppy drives. The loop devices
  123. are block special device files with major number 7 and typically
  124. called /dev/loop0, /dev/loop1 etc.
  125. This is useful if you want to check an ISO 9660 file system before
  126. burning the CD, or if you want to use floppy images without first
  127. writing them to floppy. Furthermore, some Linux distributions avoid
  128. the need for a dedicated Linux partition by keeping their complete
  129. root file system inside a DOS FAT file using this loop device
  130. driver.
  131. To use the loop device, you need the losetup utility, found in the
  132. util-linux package, see
  133. <https://www.kernel.org/pub/linux/utils/util-linux/>.
  134. The loop device driver can also be used to "hide" a file system in
  135. a disk partition, floppy, or regular file, either using encryption
  136. (scrambling the data) or steganography (hiding the data in the low
  137. bits of, say, a sound file). This is also safe if the file resides
  138. on a remote file server.
  139. Note that this loop device has nothing to do with the loopback
  140. device used for network connections from the machine to itself.
  141. To compile this driver as a module, choose M here: the
  142. module will be called loop.
  143. Most users will answer N here.
  144. config BLK_DEV_LOOP_MIN_COUNT
  145. int "Number of loop devices to pre-create at init time"
  146. depends on BLK_DEV_LOOP
  147. default 8
  148. help
  149. Static number of loop devices to be unconditionally pre-created
  150. at init time.
  151. This default value can be overwritten on the kernel command
  152. line or with module-parameter loop.max_loop.
  153. The historic default is 8. If a late 2011 version of losetup(8)
  154. is used, it can be set to 0, since needed loop devices can be
  155. dynamically allocated with the /dev/loop-control interface.
  156. source "drivers/block/drbd/Kconfig"
  157. config BLK_DEV_NBD
  158. tristate "Network block device support"
  159. depends on NET
  160. help
  161. Saying Y here will allow your computer to be a client for network
  162. block devices, i.e. it will be able to use block devices exported by
  163. servers (mount file systems on them etc.). Communication between
  164. client and server works over TCP/IP networking, but to the client
  165. program this is hidden: it looks like a regular local file access to
  166. a block device special file such as /dev/nd0.
  167. Network block devices also allows you to run a block-device in
  168. userland (making server and client physically the same computer,
  169. communicating using the loopback network device).
  170. Read <file:Documentation/admin-guide/blockdev/nbd.rst> for more information,
  171. especially about where to find the server code, which runs in user
  172. space and does not need special kernel support.
  173. Note that this has nothing to do with the network file systems NFS
  174. or Coda; you can say N here even if you intend to use NFS or Coda.
  175. To compile this driver as a module, choose M here: the
  176. module will be called nbd.
  177. If unsure, say N.
  178. config BLK_DEV_RAM
  179. tristate "RAM block device support"
  180. help
  181. Saying Y here will allow you to use a portion of your RAM memory as
  182. a block device, so that you can make file systems on it, read and
  183. write to it and do all the other things that you can do with normal
  184. block devices (such as hard drives). It is usually used to load and
  185. store a copy of a minimal root file system off of a floppy into RAM
  186. during the initial install of Linux.
  187. Note that the kernel command line option "ramdisk=XX" is now obsolete.
  188. For details, read <file:Documentation/admin-guide/blockdev/ramdisk.rst>.
  189. To compile this driver as a module, choose M here: the
  190. module will be called brd. An alias "rd" has been defined
  191. for historical reasons.
  192. Most normal users won't need the RAM disk functionality, and can
  193. thus say N here.
  194. config BLK_DEV_RAM_COUNT
  195. int "Default number of RAM disks"
  196. default "16"
  197. depends on BLK_DEV_RAM
  198. help
  199. The default value is 16 RAM disks. Change this if you know what you
  200. are doing. If you boot from a filesystem that needs to be extracted
  201. in memory, you will need at least one RAM disk (e.g. root on cramfs).
  202. config BLK_DEV_RAM_SIZE
  203. int "Default RAM disk size (kbytes)"
  204. depends on BLK_DEV_RAM
  205. default "4096"
  206. help
  207. The default value is 4096 kilobytes. Only change this if you know
  208. what you are doing.
  209. config CDROM_PKTCDVD
  210. tristate "Packet writing on CD/DVD media (DEPRECATED)"
  211. depends on !UML
  212. depends on SCSI
  213. select CDROM
  214. help
  215. Note: This driver is deprecated and will be removed from the
  216. kernel in the near future!
  217. If you have a CDROM/DVD drive that supports packet writing, say
  218. Y to include support. It should work with any MMC/Mt Fuji
  219. compliant ATAPI or SCSI drive, which is just about any newer
  220. DVD/CD writer.
  221. Currently only writing to CD-RW, DVD-RW, DVD+RW and DVDRAM discs
  222. is possible.
  223. DVD-RW disks must be in restricted overwrite mode.
  224. See the file <file:Documentation/cdrom/packet-writing.rst>
  225. for further information on the use of this driver.
  226. To compile this driver as a module, choose M here: the
  227. module will be called pktcdvd.
  228. config CDROM_PKTCDVD_BUFFERS
  229. int "Free buffers for data gathering"
  230. depends on CDROM_PKTCDVD
  231. default "8"
  232. help
  233. This controls the maximum number of active concurrent packets. More
  234. concurrent packets can increase write performance, but also require
  235. more memory. Each concurrent packet will require approximately 64Kb
  236. of non-swappable kernel memory, memory which will be allocated when
  237. a disc is opened for writing.
  238. config CDROM_PKTCDVD_WCACHE
  239. bool "Enable write caching"
  240. depends on CDROM_PKTCDVD
  241. help
  242. If enabled, write caching will be set for the CD-R/W device. For now
  243. this option is dangerous unless the CD-RW media is known good, as we
  244. don't do deferred write error handling yet.
  245. config ATA_OVER_ETH
  246. tristate "ATA over Ethernet support"
  247. depends on NET
  248. help
  249. This driver provides Support for ATA over Ethernet block
  250. devices like the Coraid EtherDrive (R) Storage Blade.
  251. config SUNVDC
  252. tristate "Sun Virtual Disk Client support"
  253. depends on SUN_LDOMS
  254. help
  255. Support for virtual disk devices as a client under Sun
  256. Logical Domains.
  257. source "drivers/s390/block/Kconfig"
  258. config XEN_BLKDEV_FRONTEND
  259. tristate "Xen virtual block device support"
  260. depends on XEN
  261. default y
  262. select XEN_XENBUS_FRONTEND
  263. help
  264. This driver implements the front-end of the Xen virtual
  265. block device driver. It communicates with a back-end driver
  266. in another domain which drives the actual block device.
  267. config XEN_BLKDEV_BACKEND
  268. tristate "Xen block-device backend driver"
  269. depends on XEN_BACKEND
  270. help
  271. The block-device backend driver allows the kernel to export its
  272. block devices to other guests via a high-performance shared-memory
  273. interface.
  274. The corresponding Linux frontend driver is enabled by the
  275. CONFIG_XEN_BLKDEV_FRONTEND configuration option.
  276. The backend driver attaches itself to a any block device specified
  277. in the XenBus configuration. There are no limits to what the block
  278. device as long as it has a major and minor.
  279. If you are compiling a kernel to run in a Xen block backend driver
  280. domain (often this is domain 0) you should say Y here. To
  281. compile this driver as a module, chose M here: the module
  282. will be called xen-blkback.
  283. config VIRTIO_BLK
  284. tristate "Virtio block driver"
  285. depends on VIRTIO
  286. select SG_POOL
  287. help
  288. This is the virtual block driver for virtio. It can be used with
  289. QEMU based VMMs (like KVM or Xen). Say Y or M.
  290. config BLK_DEV_RUST_NULL
  291. tristate "Rust null block driver (Experimental)"
  292. depends on RUST
  293. help
  294. This is the Rust implementation of the null block driver. For now it
  295. is only a minimal stub.
  296. If unsure, say N.
  297. config BLK_DEV_RBD
  298. tristate "Rados block device (RBD)"
  299. depends on INET && BLOCK
  300. select CEPH_LIB
  301. select LIBCRC32C
  302. select CRYPTO_AES
  303. select CRYPTO
  304. help
  305. Say Y here if you want include the Rados block device, which stripes
  306. a block device over objects stored in the Ceph distributed object
  307. store.
  308. More information at http://ceph.newdream.net/.
  309. If unsure, say N.
  310. config BLK_DEV_UBLK
  311. tristate "Userspace block driver (Experimental)"
  312. select IO_URING
  313. help
  314. io_uring based userspace block driver. Together with ublk server, ublk
  315. has been working well, but interface with userspace or command data
  316. definition isn't finalized yet, and might change according to future
  317. requirement, so mark is as experimental now.
  318. Say Y if you want to get better performance because task_work_add()
  319. can be used in IO path for replacing io_uring cmd, which will become
  320. shared between IO tasks and ubq daemon, meantime task_work_add() can
  321. can handle batch more effectively, but task_work_add() isn't exported
  322. for module, so ublk has to be built to kernel.
  323. config BLKDEV_UBLK_LEGACY_OPCODES
  324. bool "Support legacy command opcode"
  325. depends on BLK_DEV_UBLK
  326. default y
  327. help
  328. ublk driver started to take plain command encoding, which turns out
  329. one bad way. The traditional ioctl command opcode encodes more
  330. info and basically defines each code uniquely, so opcode conflict
  331. is avoided, and driver can handle wrong command easily, meantime it
  332. may help security subsystem to audit io_uring command.
  333. Say Y if your application still uses legacy command opcode.
  334. Say N if you don't want to support legacy command opcode. It is
  335. suggested to enable N if your application(ublk server) switches to
  336. ioctl command encoding.
  337. source "drivers/block/rnbd/Kconfig"
  338. endif # BLK_DEV