xref: /linux/drivers/block/Kconfig (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Block device driver configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
6fd11d171SJan Engelhardtmenuconfig BLK_DEV
7fd11d171SJan Engelhardt	bool "Block devices"
8fd11d171SJan Engelhardt	depends on BLOCK
9fd11d171SJan Engelhardt	default y
10a7f7f624SMasahiro Yamada	help
1106bfb7ebSJan Engelhardt	  Say Y here to get to see options for various different block device
1206bfb7ebSJan Engelhardt	  drivers. This option alone does not add any kernel code.
1306bfb7ebSJan Engelhardt
1406bfb7ebSJan Engelhardt	  If you say N, all options in this submenu will be skipped and disabled;
1506bfb7ebSJan Engelhardt	  only do this if you know what you are doing.
169361401eSDavid Howells
17fd11d171SJan Engelhardtif BLK_DEV
181da177e4SLinus Torvalds
19eebf34a8SDamien Le Moalsource "drivers/block/null_blk/Kconfig"
20f2298c04SJens Axboe
211da177e4SLinus Torvaldsconfig BLK_DEV_FD
221da177e4SLinus Torvalds	tristate "Normal floppy disk support"
23a08b6b79Sviro@ZenIV.linux.org.uk	depends on ARCH_MAY_HAVE_PC_FDC
24a7f7f624SMasahiro Yamada	help
251da177e4SLinus Torvalds	  If you want to use the floppy disk drive(s) of your PC under Linux,
261da177e4SLinus Torvalds	  say Y. Information about this driver, especially important for IBM
2731c00fc1SRandy Dunlap	  Thinkpad users, is contained in
28e7751617SMauro Carvalho Chehab	  <file:Documentation/admin-guide/blockdev/floppy.rst>.
291da177e4SLinus Torvalds	  That file also contains the location of the Floppy driver FAQ as
301da177e4SLinus Torvalds	  well as location of the fdutils package used to configure additional
311da177e4SLinus Torvalds	  parameters of the driver at run time.
321da177e4SLinus Torvalds
331da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
341da177e4SLinus Torvalds	  module will be called floppy.
351da177e4SLinus Torvalds
36233087caSWilly Tarreauconfig BLK_DEV_FD_RAWCMD
37233087caSWilly Tarreau	bool "Support for raw floppy disk commands (DEPRECATED)"
38233087caSWilly Tarreau	depends on BLK_DEV_FD
39233087caSWilly Tarreau	help
40233087caSWilly Tarreau	  If you want to use actual physical floppies and expect to do
41233087caSWilly Tarreau	  special low-level hardware accesses to them (access and use
42233087caSWilly Tarreau	  non-standard formats, for example), then enable this.
43233087caSWilly Tarreau
44233087caSWilly Tarreau	  Note that the code enabled by this option is rarely used and
45233087caSWilly Tarreau	  might be unstable or insecure, and distros should not enable it.
46233087caSWilly Tarreau
47233087caSWilly Tarreau	  Note: FDRAWCMD is deprecated and will be removed from the kernel
48233087caSWilly Tarreau	  in the near future.
49233087caSWilly Tarreau
50233087caSWilly Tarreau	  If unsure, say N.
51233087caSWilly Tarreau
521da177e4SLinus Torvaldsconfig AMIGA_FLOPPY
531da177e4SLinus Torvalds	tristate "Amiga floppy support"
541da177e4SLinus Torvalds	depends on AMIGA
551da177e4SLinus Torvalds
561da177e4SLinus Torvaldsconfig ATARI_FLOPPY
571da177e4SLinus Torvalds	tristate "Atari floppy support"
581da177e4SLinus Torvalds	depends on ATARI
591da177e4SLinus Torvalds
601da177e4SLinus Torvaldsconfig MAC_FLOPPY
611da177e4SLinus Torvalds	tristate "Support for PowerMac floppy"
621da177e4SLinus Torvalds	depends on PPC_PMAC && !PPC_PMAC64
631da177e4SLinus Torvalds	help
641da177e4SLinus Torvalds	  If you have a SWIM-3 (Super Woz Integrated Machine 3; from Apple)
651da177e4SLinus Torvalds	  floppy controller, say Y here. Most commonly found in PowerMacs.
661da177e4SLinus Torvalds
678852ecd9SLaurent Vivierconfig BLK_DEV_SWIM
688852ecd9SLaurent Vivier	tristate "Support for SWIM Macintosh floppy"
694c6e5bc8SChristoph Hellwig	depends on M68K && MAC && !HIGHMEM
708852ecd9SLaurent Vivier	help
718852ecd9SLaurent Vivier	  You should select this option if you want floppy support
728852ecd9SLaurent Vivier	  and you don't have a II, IIfx, Q900, Q950 or AV series.
738852ecd9SLaurent Vivier
741da177e4SLinus Torvaldsconfig AMIGA_Z2RAM
751da177e4SLinus Torvalds	tristate "Amiga Zorro II ramdisk support"
761da177e4SLinus Torvalds	depends on ZORRO
771da177e4SLinus Torvalds	help
781da177e4SLinus Torvalds	  This enables support for using Chip RAM and Zorro II RAM as a
791da177e4SLinus Torvalds	  ramdisk or as a swap partition. Say Y if you want to include this
801da177e4SLinus Torvalds	  driver in the kernel.
811da177e4SLinus Torvalds
821da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
831da177e4SLinus Torvalds	  module will be called z2ram.
841da177e4SLinus Torvalds
85d9b2a2bbSLauri Kasanenconfig N64CART
86d9b2a2bbSLauri Kasanen	bool "N64 cart support"
87d9b2a2bbSLauri Kasanen	depends on MACH_NINTENDO64
88d9b2a2bbSLauri Kasanen	help
89d9b2a2bbSLauri Kasanen	  Support for the N64 cart.
90d9b2a2bbSLauri Kasanen
912a750166SBart Van Asscheconfig CDROM
92a116895fSJens Axboe	tristate
932a750166SBart Van Assche
942395e463SRandy Dunlapconfig GDROM
952395e463SRandy Dunlap	tristate "SEGA Dreamcast GD-ROM drive"
962395e463SRandy Dunlap	depends on SH_DREAMCAST
972a750166SBart Van Assche	select CDROM
982395e463SRandy Dunlap	help
992395e463SRandy Dunlap	  A standard SEGA Dreamcast comes with a modified CD ROM drive called a
1002395e463SRandy Dunlap	  "GD-ROM" by SEGA to signify it is capable of reading special disks
1012395e463SRandy Dunlap	  with up to 1 GB of data. This drive will also read standard CD ROM
1022395e463SRandy Dunlap	  disks. Select this option to access any disks in your GD ROM drive.
1032395e463SRandy Dunlap	  Most users will want to say "Y" here.
1042395e463SRandy Dunlap	  You can also build this as a module which will be called gdrom.
1052395e463SRandy Dunlap
10688523a61SSam Bradshawsource "drivers/block/mtip32xx/Kconfig"
10788523a61SSam Bradshaw
108cd67e10aSMinchan Kimsource "drivers/block/zram/Kconfig"
109cd67e10aSMinchan Kim
1101da177e4SLinus Torvaldsconfig BLK_DEV_UBD
1111da177e4SLinus Torvalds	bool "Virtual block device"
1121da177e4SLinus Torvalds	depends on UML
113a7f7f624SMasahiro Yamada	help
1141da177e4SLinus Torvalds          The User-Mode Linux port includes a driver called UBD which will let
1151da177e4SLinus Torvalds          you access arbitrary files on the host computer as block devices.
1161da177e4SLinus Torvalds          Unless you know that you do not need such virtual block devices say
1171da177e4SLinus Torvalds          Y here.
1181da177e4SLinus Torvalds
1191da177e4SLinus Torvaldsconfig BLK_DEV_UBD_SYNC
1201da177e4SLinus Torvalds	bool "Always do synchronous disk IO for UBD"
1211da177e4SLinus Torvalds	depends on BLK_DEV_UBD
122a7f7f624SMasahiro Yamada	help
1231da177e4SLinus Torvalds	  Writes to the virtual block device are not immediately written to the
1241da177e4SLinus Torvalds	  host's disk; this may cause problems if, for example, the User-Mode
1251da177e4SLinus Torvalds	  Linux 'Virtual Machine' uses a journalling filesystem and the host
1261da177e4SLinus Torvalds	  computer crashes.
1271da177e4SLinus Torvalds
1281da177e4SLinus Torvalds          Synchronous operation (i.e. always writing data to the host's disk
1291da177e4SLinus Torvalds          immediately) is configurable on a per-UBD basis by using a special
1301da177e4SLinus Torvalds          kernel command line option.  Alternatively, you can say Y here to
1311da177e4SLinus Torvalds          turn on synchronous operation by default for all block devices.
1321da177e4SLinus Torvalds
1331da177e4SLinus Torvalds          If you're running a journalling file system (like reiserfs, for
1341da177e4SLinus Torvalds          example) in your virtual machine, you will want to say Y here.  If
1351da177e4SLinus Torvalds          you care for the safety of the data in your virtual machine, Y is a
1361da177e4SLinus Torvalds          wise choice too.  In all other cases (for example, if you're just
1371da177e4SLinus Torvalds          playing around with User-Mode Linux) you can choose N.
1381da177e4SLinus Torvalds
1391da177e4SLinus Torvaldsconfig BLK_DEV_COW_COMMON
1401da177e4SLinus Torvalds	bool
1411da177e4SLinus Torvalds	default BLK_DEV_UBD
1421da177e4SLinus Torvalds
1431da177e4SLinus Torvaldsconfig BLK_DEV_LOOP
1441da177e4SLinus Torvalds	tristate "Loopback device support"
145a7f7f624SMasahiro Yamada	help
1461da177e4SLinus Torvalds	  Saying Y here will allow you to use a regular file as a block
1471da177e4SLinus Torvalds	  device; you can then create a file system on that block device and
1481da177e4SLinus Torvalds	  mount it just as you would mount other block devices such as hard
1491da177e4SLinus Torvalds	  drive partitions, CD-ROM drives or floppy drives. The loop devices
1501da177e4SLinus Torvalds	  are block special device files with major number 7 and typically
1511da177e4SLinus Torvalds	  called /dev/loop0, /dev/loop1 etc.
1521da177e4SLinus Torvalds
1531da177e4SLinus Torvalds	  This is useful if you want to check an ISO 9660 file system before
1541da177e4SLinus Torvalds	  burning the CD, or if you want to use floppy images without first
1551da177e4SLinus Torvalds	  writing them to floppy. Furthermore, some Linux distributions avoid
1561da177e4SLinus Torvalds	  the need for a dedicated Linux partition by keeping their complete
1571da177e4SLinus Torvalds	  root file system inside a DOS FAT file using this loop device
1581da177e4SLinus Torvalds	  driver.
1591da177e4SLinus Torvalds
1601da177e4SLinus Torvalds	  To use the loop device, you need the losetup utility, found in the
1611da177e4SLinus Torvalds	  util-linux package, see
1624f6cce39SSeongJae Park	  <https://www.kernel.org/pub/linux/utils/util-linux/>.
1631da177e4SLinus Torvalds
1641da177e4SLinus Torvalds	  The loop device driver can also be used to "hide" a file system in
1651da177e4SLinus Torvalds	  a disk partition, floppy, or regular file, either using encryption
1661da177e4SLinus Torvalds	  (scrambling the data) or steganography (hiding the data in the low
1671da177e4SLinus Torvalds	  bits of, say, a sound file). This is also safe if the file resides
1681da177e4SLinus Torvalds	  on a remote file server.
1691da177e4SLinus Torvalds
1701da177e4SLinus Torvalds	  Note that this loop device has nothing to do with the loopback
1711da177e4SLinus Torvalds	  device used for network connections from the machine to itself.
1721da177e4SLinus Torvalds
1731da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
1741da177e4SLinus Torvalds	  module will be called loop.
1751da177e4SLinus Torvalds
1761da177e4SLinus Torvalds	  Most users will answer N here.
1771da177e4SLinus Torvalds
178d134b00bSKay Sieversconfig BLK_DEV_LOOP_MIN_COUNT
179d134b00bSKay Sievers	int "Number of loop devices to pre-create at init time"
180d134b00bSKay Sievers	depends on BLK_DEV_LOOP
181d134b00bSKay Sievers	default 8
182d134b00bSKay Sievers	help
183d134b00bSKay Sievers	  Static number of loop devices to be unconditionally pre-created
184d134b00bSKay Sievers	  at init time.
185d134b00bSKay Sievers
186d134b00bSKay Sievers	  This default value can be overwritten on the kernel command
187d134b00bSKay Sievers	  line or with module-parameter loop.max_loop.
188d134b00bSKay Sievers
189d134b00bSKay Sievers	  The historic default is 8. If a late 2011 version of losetup(8)
190d134b00bSKay Sievers	  is used, it can be set to 0, since needed loop devices can be
191d134b00bSKay Sievers	  dynamically allocated with the /dev/loop-control interface.
192d134b00bSKay Sievers
193b411b363SPhilipp Reisnersource "drivers/block/drbd/Kconfig"
194b411b363SPhilipp Reisner
1951da177e4SLinus Torvaldsconfig BLK_DEV_NBD
1961da177e4SLinus Torvalds	tristate "Network block device support"
1971da177e4SLinus Torvalds	depends on NET
198a7f7f624SMasahiro Yamada	help
1991da177e4SLinus Torvalds	  Saying Y here will allow your computer to be a client for network
2001da177e4SLinus Torvalds	  block devices, i.e. it will be able to use block devices exported by
2011da177e4SLinus Torvalds	  servers (mount file systems on them etc.). Communication between
2021da177e4SLinus Torvalds	  client and server works over TCP/IP networking, but to the client
2031da177e4SLinus Torvalds	  program this is hidden: it looks like a regular local file access to
2041da177e4SLinus Torvalds	  a block device special file such as /dev/nd0.
2051da177e4SLinus Torvalds
2061da177e4SLinus Torvalds	  Network block devices also allows you to run a block-device in
2071da177e4SLinus Torvalds	  userland (making server and client physically the same computer,
2081da177e4SLinus Torvalds	  communicating using the loopback network device).
2091da177e4SLinus Torvalds
210e7751617SMauro Carvalho Chehab	  Read <file:Documentation/admin-guide/blockdev/nbd.rst> for more information,
21131c00fc1SRandy Dunlap	  especially about where to find the server code, which runs in user
21231c00fc1SRandy Dunlap	  space and does not need special kernel support.
2131da177e4SLinus Torvalds
2141da177e4SLinus Torvalds	  Note that this has nothing to do with the network file systems NFS
2151da177e4SLinus Torvalds	  or Coda; you can say N here even if you intend to use NFS or Coda.
2161da177e4SLinus Torvalds
2171da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
2181da177e4SLinus Torvalds	  module will be called nbd.
2191da177e4SLinus Torvalds
2201da177e4SLinus Torvalds	  If unsure, say N.
2211da177e4SLinus Torvalds
2221da177e4SLinus Torvaldsconfig BLK_DEV_RAM
2239db5579bSNick Piggin	tristate "RAM block device support"
224a7f7f624SMasahiro Yamada	help
2251da177e4SLinus Torvalds	  Saying Y here will allow you to use a portion of your RAM memory as
2261da177e4SLinus Torvalds	  a block device, so that you can make file systems on it, read and
2271da177e4SLinus Torvalds	  write to it and do all the other things that you can do with normal
2281da177e4SLinus Torvalds	  block devices (such as hard drives). It is usually used to load and
2291da177e4SLinus Torvalds	  store a copy of a minimal root file system off of a floppy into RAM
2301da177e4SLinus Torvalds	  during the initial install of Linux.
2311da177e4SLinus Torvalds
23231c00fc1SRandy Dunlap	  Note that the kernel command line option "ramdisk=XX" is now obsolete.
233e7751617SMauro Carvalho Chehab	  For details, read <file:Documentation/admin-guide/blockdev/ramdisk.rst>.
2341da177e4SLinus Torvalds
2351da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
236a3b25d9bSFabian Frederick	  module will be called brd. An alias "rd" has been defined
237a3b25d9bSFabian Frederick	  for historical reasons.
2381da177e4SLinus Torvalds
2391da177e4SLinus Torvalds	  Most normal users won't need the RAM disk functionality, and can
2401da177e4SLinus Torvalds	  thus say N here.
2411da177e4SLinus Torvalds
2421da177e4SLinus Torvaldsconfig BLK_DEV_RAM_COUNT
243a687fb18SAdrian Bunk	int "Default number of RAM disks"
2441da177e4SLinus Torvalds	default "16"
245a687fb18SAdrian Bunk	depends on BLK_DEV_RAM
2461da177e4SLinus Torvalds	help
2472e977c85SPatrick Ringl	  The default value is 16 RAM disks. Change this if you know what you
2481da177e4SLinus Torvalds	  are doing. If you boot from a filesystem that needs to be extracted
2491da177e4SLinus Torvalds	  in memory, you will need at least one RAM disk (e.g. root on cramfs).
2501da177e4SLinus Torvalds
2511da177e4SLinus Torvaldsconfig BLK_DEV_RAM_SIZE
2521da177e4SLinus Torvalds	int "Default RAM disk size (kbytes)"
2531da177e4SLinus Torvalds	depends on BLK_DEV_RAM
2541da177e4SLinus Torvalds	default "4096"
2551da177e4SLinus Torvalds	help
2561da177e4SLinus Torvalds	  The default value is 4096 kilobytes. Only change this if you know
2572e977c85SPatrick Ringl	  what you are doing.
2581da177e4SLinus Torvalds
2594b83e99eSJens Axboeconfig CDROM_PKTCDVD
2604b83e99eSJens Axboe	tristate "Packet writing on CD/DVD media (DEPRECATED)"
2614b83e99eSJens Axboe	depends on !UML
2624b83e99eSJens Axboe	depends on SCSI
2634b83e99eSJens Axboe	select CDROM
2644b83e99eSJens Axboe	help
2654b83e99eSJens Axboe	  Note: This driver is deprecated and will be removed from the
2664b83e99eSJens Axboe	  kernel in the near future!
2674b83e99eSJens Axboe
2684b83e99eSJens Axboe	  If you have a CDROM/DVD drive that supports packet writing, say
2694b83e99eSJens Axboe	  Y to include support. It should work with any MMC/Mt Fuji
2704b83e99eSJens Axboe	  compliant ATAPI or SCSI drive, which is just about any newer
2714b83e99eSJens Axboe	  DVD/CD writer.
2724b83e99eSJens Axboe
2734b83e99eSJens Axboe	  Currently only writing to CD-RW, DVD-RW, DVD+RW and DVDRAM discs
2744b83e99eSJens Axboe	  is possible.
2754b83e99eSJens Axboe	  DVD-RW disks must be in restricted overwrite mode.
2764b83e99eSJens Axboe
2774b83e99eSJens Axboe	  See the file <file:Documentation/cdrom/packet-writing.rst>
2784b83e99eSJens Axboe	  for further information on the use of this driver.
2794b83e99eSJens Axboe
2804b83e99eSJens Axboe	  To compile this driver as a module, choose M here: the
2814b83e99eSJens Axboe	  module will be called pktcdvd.
2824b83e99eSJens Axboe
2834b83e99eSJens Axboeconfig CDROM_PKTCDVD_BUFFERS
2844b83e99eSJens Axboe	int "Free buffers for data gathering"
2854b83e99eSJens Axboe	depends on CDROM_PKTCDVD
2864b83e99eSJens Axboe	default "8"
2874b83e99eSJens Axboe	help
2884b83e99eSJens Axboe	  This controls the maximum number of active concurrent packets. More
2894b83e99eSJens Axboe	  concurrent packets can increase write performance, but also require
2904b83e99eSJens Axboe	  more memory. Each concurrent packet will require approximately 64Kb
2914b83e99eSJens Axboe	  of non-swappable kernel memory, memory which will be allocated when
2924b83e99eSJens Axboe	  a disc is opened for writing.
2934b83e99eSJens Axboe
2944b83e99eSJens Axboeconfig CDROM_PKTCDVD_WCACHE
2954b83e99eSJens Axboe	bool "Enable write caching"
2964b83e99eSJens Axboe	depends on CDROM_PKTCDVD
2974b83e99eSJens Axboe	help
2984b83e99eSJens Axboe	  If enabled, write caching will be set for the CD-R/W device. For now
2994b83e99eSJens Axboe	  this option is dangerous unless the CD-RW media is known good, as we
3004b83e99eSJens Axboe	  don't do deferred write error handling yet.
3014b83e99eSJens Axboe
3021da177e4SLinus Torvaldsconfig ATA_OVER_ETH
3031da177e4SLinus Torvalds	tristate "ATA over Ethernet support"
3041da177e4SLinus Torvalds	depends on NET
3051da177e4SLinus Torvalds	help
3061da177e4SLinus Torvalds	This driver provides Support for ATA over Ethernet block
3071da177e4SLinus Torvalds	devices like the Coraid EtherDrive (R) Storage Blade.
3081da177e4SLinus Torvalds
309667ef3c3SDavid S. Millerconfig SUNVDC
310667ef3c3SDavid S. Miller	tristate "Sun Virtual Disk Client support"
311667ef3c3SDavid S. Miller	depends on SUN_LDOMS
312667ef3c3SDavid S. Miller	help
313667ef3c3SDavid S. Miller	  Support for virtual disk devices as a client under Sun
314667ef3c3SDavid S. Miller	  Logical Domains.
315667ef3c3SDavid S. Miller
31661d48c2cSMartin Schwidefskysource "drivers/s390/block/Kconfig"
31761d48c2cSMartin Schwidefsky
3189f27ee59SJeremy Fitzhardingeconfig XEN_BLKDEV_FRONTEND
3199f27ee59SJeremy Fitzhardinge	tristate "Xen virtual block device support"
3209f27ee59SJeremy Fitzhardinge	depends on XEN
3219f27ee59SJeremy Fitzhardinge	default y
3222de06cc1SIan Campbell	select XEN_XENBUS_FRONTEND
3239f27ee59SJeremy Fitzhardinge	help
3249f27ee59SJeremy Fitzhardinge	  This driver implements the front-end of the Xen virtual
3259f27ee59SJeremy Fitzhardinge	  block device driver.  It communicates with a back-end driver
3269f27ee59SJeremy Fitzhardinge	  in another domain which drives the actual block device.
3279f27ee59SJeremy Fitzhardinge
328dfc07b13SKonrad Rzeszutek Wilkconfig XEN_BLKDEV_BACKEND
329ea5e1161SKonrad Rzeszutek Wilk	tristate "Xen block-device backend driver"
330dfc07b13SKonrad Rzeszutek Wilk	depends on XEN_BACKEND
331dfc07b13SKonrad Rzeszutek Wilk	help
332dfc07b13SKonrad Rzeszutek Wilk	  The block-device backend driver allows the kernel to export its
333dfc07b13SKonrad Rzeszutek Wilk	  block devices to other guests via a high-performance shared-memory
334dfc07b13SKonrad Rzeszutek Wilk	  interface.
335dfc07b13SKonrad Rzeszutek Wilk
336a4c34858SKonrad Rzeszutek Wilk	  The corresponding Linux frontend driver is enabled by the
337a4c34858SKonrad Rzeszutek Wilk	  CONFIG_XEN_BLKDEV_FRONTEND configuration option.
338a4c34858SKonrad Rzeszutek Wilk
339a4c34858SKonrad Rzeszutek Wilk	  The backend driver attaches itself to a any block device specified
340a4c34858SKonrad Rzeszutek Wilk	  in the XenBus configuration. There are no limits to what the block
341a4c34858SKonrad Rzeszutek Wilk	  device as long as it has a major and minor.
342a4c34858SKonrad Rzeszutek Wilk
343a4c34858SKonrad Rzeszutek Wilk	  If you are compiling a kernel to run in a Xen block backend driver
344a4c34858SKonrad Rzeszutek Wilk	  domain (often this is domain 0) you should say Y here. To
345a4c34858SKonrad Rzeszutek Wilk	  compile this driver as a module, chose M here: the module
346a4c34858SKonrad Rzeszutek Wilk	  will be called xen-blkback.
347a4c34858SKonrad Rzeszutek Wilk
348a4c34858SKonrad Rzeszutek Wilk
349e467cde2SRusty Russellconfig VIRTIO_BLK
350b8977285SKees Cook	tristate "Virtio block driver"
351b8977285SKees Cook	depends on VIRTIO
35202746e26SMax Gurtovoy	select SG_POOL
353a7f7f624SMasahiro Yamada	help
3540ad07ec1SAnthony Liguori	  This is the virtual block driver for virtio.  It can be used with
355ecda85e7SJuergen Gross          QEMU based VMMs (like KVM or Xen).  Say Y or M.
356e467cde2SRusty Russell
357*bc5b533bSAndreas Hindborgconfig BLK_DEV_RUST_NULL
358*bc5b533bSAndreas Hindborg	tristate "Rust null block driver (Experimental)"
359*bc5b533bSAndreas Hindborg	depends on RUST
360*bc5b533bSAndreas Hindborg	help
361*bc5b533bSAndreas Hindborg	  This is the Rust implementation of the null block driver. For now it
362*bc5b533bSAndreas Hindborg	  is only a minimal stub.
363*bc5b533bSAndreas Hindborg
364*bc5b533bSAndreas Hindborg	  If unsure, say N.
365*bc5b533bSAndreas Hindborg
366602adf40SYehuda Sadehconfig BLK_DEV_RBD
367602adf40SYehuda Sadeh	tristate "Rados block device (RBD)"
368b8977285SKees Cook	depends on INET && BLOCK
369602adf40SYehuda Sadeh	select CEPH_LIB
370602adf40SYehuda Sadeh	select LIBCRC32C
371602adf40SYehuda Sadeh	select CRYPTO_AES
372602adf40SYehuda Sadeh	select CRYPTO
373602adf40SYehuda Sadeh	help
374602adf40SYehuda Sadeh	  Say Y here if you want include the Rados block device, which stripes
375602adf40SYehuda Sadeh	  a block device over objects stored in the Ceph distributed object
376602adf40SYehuda Sadeh	  store.
377602adf40SYehuda Sadeh
378602adf40SYehuda Sadeh	  More information at http://ceph.newdream.net/.
379602adf40SYehuda Sadeh
380602adf40SYehuda Sadeh	  If unsure, say N.
381602adf40SYehuda Sadeh
38271f28f31SMing Leiconfig BLK_DEV_UBLK
38371f28f31SMing Lei	tristate "Userspace block driver (Experimental)"
38471f28f31SMing Lei	select IO_URING
38571f28f31SMing Lei	help
38671f28f31SMing Lei	  io_uring based userspace block driver. Together with ublk server, ublk
38771f28f31SMing Lei	  has been working well, but interface with userspace or command data
38871f28f31SMing Lei	  definition isn't finalized yet, and might change according to future
38971f28f31SMing Lei	  requirement, so mark is as experimental now.
39071f28f31SMing Lei
391d57c2c6cSMing Lei	  Say Y if you want to get better performance because task_work_add()
392d57c2c6cSMing Lei	  can be used in IO path for replacing io_uring cmd, which will become
393d57c2c6cSMing Lei	  shared between IO tasks and ubq daemon, meantime task_work_add() can
394d57c2c6cSMing Lei	  can handle batch more effectively, but task_work_add() isn't exported
395d57c2c6cSMing Lei	  for module, so ublk has to be built to kernel.
396d57c2c6cSMing Lei
3972d786e66SMing Leiconfig BLKDEV_UBLK_LEGACY_OPCODES
3982d786e66SMing Lei	bool "Support legacy command opcode"
3992d786e66SMing Lei	depends on BLK_DEV_UBLK
4002d786e66SMing Lei	default y
4012d786e66SMing Lei	help
4022d786e66SMing Lei	  ublk driver started to take plain command encoding, which turns out
4032d786e66SMing Lei	  one bad way. The traditional ioctl command opcode encodes more
4042d786e66SMing Lei	  info and basically defines each code uniquely, so opcode conflict
4052d786e66SMing Lei	  is avoided, and driver can handle wrong command easily, meantime it
4062d786e66SMing Lei	  may help security subsystem to audit io_uring command.
4072d786e66SMing Lei
4082d786e66SMing Lei	  Say Y if your application still uses legacy command opcode.
4092d786e66SMing Lei
4102d786e66SMing Lei	  Say N if you don't want to support legacy command opcode. It is
4112d786e66SMing Lei	  suggested to enable N if your application(ublk server) switches to
4122d786e66SMing Lei	  ioctl command encoding.
4132d786e66SMing Lei
414bc018853SJack Wangsource "drivers/block/rnbd/Kconfig"
415bc018853SJack Wang
416fd11d171SJan Engelhardtendif # BLK_DEV
417