Kconfig 13 KB

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