# SPDX-License-Identifier: GPL-2.0
#
# Block device driver configuration
#
menuconfig [31mCONFIG_BLK_DEV[0m
bool "Block devices"
depends on [31mCONFIG_BLOCK[0m
default y
---help---
Say Y here to get to see options for various different block device
drivers. This option alone does not add any kernel code.
If you say N, all options in this submenu will be skipped and disabled;
only do this if you know what you are doing.
if [31mCONFIG_BLK_DEV[0m
config [31mCONFIG_BLK_DEV_NULL_BLK[0m
tristate "Null test block driver"
select [31mCONFIG_CONFIGFS_FS[0m
config [31mCONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION[0m
bool "Support fault injection for Null test block driver"
depends on [31mCONFIG_BLK_DEV_NULL_BLK[0m && [31mCONFIG_FAULT_INJECTION[0m
config [31mCONFIG_BLK_DEV_FD[0m
tristate "Normal floppy disk support"
depends on [31mCONFIG_ARCH_MAY_HAVE_PC_FDC[0m
---help---
If you want to use the floppy disk drive(s) of your PC under Linux,
say Y. Information about this driver, especially important for IBM
Thinkpad users, is contained in
<file:Documentation/admin-guide/blockdev/floppy.rst>.
That file also contains the location of the Floppy driver FAQ as
well as location of the fdutils package used to configure additional
parameters of the driver at run time.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called floppy.
config [31mCONFIG_AMIGA_FLOPPY[0m
tristate "Amiga floppy support"
depends on [31mCONFIG_AMIGA[0m
config [31mCONFIG_ATARI_FLOPPY[0m
tristate "Atari floppy support"
depends on [31mCONFIG_ATARI[0m
config [31mCONFIG_MAC_FLOPPY[0m
tristate "Support for PowerMac floppy"
depends on [31mCONFIG_PPC_PMAC[0m && ![31mCONFIG_PPC_PMAC64[0m
help
If you have a SWIM-3 (Super Woz Integrated Machine 3; from Apple)
floppy controller, say Y here. Most commonly found in PowerMacs.
config [31mCONFIG_BLK_DEV_SWIM[0m
tristate "Support for SWIM Macintosh floppy"
depends on [31mCONFIG_M68K[0m && [31mCONFIG_MAC[0m
help
You should select this option if you want floppy support
and you don't have a II, IIfx, Q900, Q950 or AV series.
config [31mCONFIG_AMIGA_Z2RAM[0m
tristate "Amiga Zorro II ramdisk support"
depends on [31mCONFIG_ZORRO[0m
help
This enables support for using Chip RAM and Zorro II RAM as a
ramdisk or as a swap partition. Say Y if you want to include this
driver in the kernel.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called z2ram.
config [31mCONFIG_CDROM[0m
tristate
select [31mCONFIG_BLK_SCSI_REQUEST[0m
config [31mCONFIG_GDROM[0m
tristate "SEGA Dreamcast GD-ROM drive"
depends on [31mCONFIG_SH_DREAMCAST[0m
select [31mCONFIG_CDROM[0m
help
[31mCONFIG_A[0m standard SEGA Dreamcast comes with a modified CD [31mCONFIG_ROM[0m drive called a
"GD-ROM" by SEGA to signify it is capable of reading special disks
with up to 1 GB of data. This drive will also read standard CD [31mCONFIG_ROM[0m
disks. Select this option to access any disks in your GD [31mCONFIG_ROM[0m drive.
Most users will want to say "Y" here.
You can also build this as a module which will be called gdrom.
config [31mCONFIG_PARIDE[0m
tristate "Parallel port IDE device support"
depends on [31mCONFIG_PARPORT_PC[0m
---help---
There are many external CD-[31mCONFIG_ROM[0m and disk devices that connect through
your computer's parallel port. Most of them are actually [31mCONFIG_IDE[0m devices
using a parallel port [31mCONFIG_IDE[0m adapter. This option enables the [31mCONFIG_PARIDE[0m
subsystem which contains drivers for many of these external drives.
Read <file:Documentation/admin-guide/blockdev/paride.rst> for more information.
If you have said Y to the "Parallel-port support" configuration
option, you may share a single port between your printer and other
parallel port devices. Answer Y to build [31mCONFIG_PARIDE[0m support into your
kernel, or [31mCONFIG_M[0m if you would like to build it as a loadable module. If
your parallel port support is in a loadable module, you must build
[31mCONFIG_PARIDE[0m as a module. If you built [31mCONFIG_PARIDE[0m support into your kernel,
you may still build the individual protocol modules and high-level
drivers as loadable modules. If you build this support as a module,
it will be called paride.
To use the [31mCONFIG_PARIDE[0m support, you must say Y or [31mCONFIG_M[0m here and also to at
least one high-level driver (e.g. "Parallel port IDE disks",
"Parallel port ATAPI CD-ROMs", "Parallel port ATAPI disks" etc.) and
to at least one protocol driver (e.g. "ATEN EH-100 protocol",
"MicroSolutions backpack protocol", "DataStor Commuter protocol"
etc.).
source "drivers/block/paride/Kconfig"
source "drivers/block/mtip32xx/Kconfig"
source "drivers/block/zram/Kconfig"
config [31mCONFIG_BLK_DEV_UMEM[0m
tristate "Micro Memory MM5415 Battery Backed RAM support"
depends on [31mCONFIG_PCI[0m
---help---
Saying Y here will include support for the MM5415 family of
battery backed (Non-volatile) RAM cards.
<http://www.umem.com/>
The cards appear as block devices that can be partitioned into
as many as 15 partitions.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called umem.
The umem driver has not yet been allocated a MAJOR number, so
one is chosen dynamically.
config [31mCONFIG_BLK_DEV_UBD[0m
bool "Virtual block device"
depends on [31mCONFIG_UML[0m
---help---
The User-Mode Linux port includes a driver called UBD which will let
you access arbitrary files on the host computer as block devices.
Unless you know that you do not need such virtual block devices say
Y here.
config [31mCONFIG_BLK_DEV_UBD_SYNC[0m
bool "Always do synchronous disk IO for UBD"
depends on [31mCONFIG_BLK_DEV_UBD[0m
---help---
Writes to the virtual block device are not immediately written to the
host's disk; this may cause problems if, for example, the User-Mode
Linux 'Virtual Machine' uses a journalling filesystem and the host
computer crashes.
Synchronous operation (i.e. always writing data to the host's disk
immediately) is configurable on a per-UBD basis by using a special
kernel command line option. Alternatively, you can say Y here to
turn on synchronous operation by default for all block devices.
If you're running a journalling file system (like reiserfs, for
example) in your virtual machine, you will want to say Y here. If
you care for the safety of the data in your virtual machine, Y is a
wise choice too. In all other cases (for example, if you're just
playing around with User-Mode Linux) you can choose N.
config [31mCONFIG_BLK_DEV_COW_COMMON[0m
bool
default [31mCONFIG_BLK_DEV_UBD[0m
config [31mCONFIG_BLK_DEV_LOOP[0m
tristate "Loopback device support"
---help---
Saying Y here will allow you to use a regular file as a block
device; you can then create a file system on that block device and
mount it just as you would mount other block devices such as hard
drive partitions, CD-[31mCONFIG_ROM[0m drives or floppy drives. The loop devices
are block special device files with major number 7 and typically
called /dev/loop0, /dev/loop1 etc.
This is useful if you want to check an ISO 9660 file system before
burning the CD, or if you want to use floppy images without first
writing them to floppy. Furthermore, some Linux distributions avoid
the need for a dedicated Linux partition by keeping their complete
root file system inside a DOS FAT file using this loop device
driver.
To use the loop device, you need the losetup utility, found in the
util-linux package, see
<https://www.kernel.org/pub/linux/utils/util-linux/>.
The loop device driver can also be used to "hide" a file system in
a disk partition, floppy, or regular file, either using encryption
(scrambling the data) or steganography (hiding the data in the low
bits of, say, a sound file). This is also safe if the file resides
on a remote file server.
There are several ways of encrypting disks. Some of these require
kernel patches. The vanilla kernel offers the cryptoloop option
and a Device Mapper target (which is superior, as it supports all
file systems). If you want to use the cryptoloop, say Y to both
LOOP and CRYPTOLOOP, and make sure you have a recent (version 2.12
or later) version of util-linux. Additionally, be aware that
the cryptoloop is not safe for storing journaled filesystems.
Note that this loop device has nothing to do with the loopback
device used for network connections from the machine to itself.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called loop.
Most users will answer N here.
config [31mCONFIG_BLK_DEV_LOOP_MIN_COUNT[0m
int "Number of loop devices to pre-create at init time"
depends on [31mCONFIG_BLK_DEV_LOOP[0m
default 8
help
Static number of loop devices to be unconditionally pre-created
at init time.
This default value can be overwritten on the kernel command
line or with module-parameter loop.max_loop.
The historic default is 8. If a late 2011 version of losetup(8)
is used, it can be set to 0, since needed loop devices can be
dynamically allocated with the /dev/loop-control interface.
config [31mCONFIG_BLK_DEV_CRYPTOLOOP[0m
tristate "Cryptoloop Support"
select [31mCONFIG_CRYPTO[0m
select [31mCONFIG_CRYPTO_CBC[0m
depends on [31mCONFIG_BLK_DEV_LOOP[0m
---help---
Say Y here if you want to be able to use the ciphers that are
provided by the CryptoAPI as loop transformation. This might be
used as hard disk encryption.
WARNING: This device is not safe for journaled file systems like
ext3 or Reiserfs. Please use the Device Mapper crypto module
instead, which can be configured to be on-disk compatible with the
cryptoloop device.
source "drivers/block/drbd/Kconfig"
config [31mCONFIG_BLK_DEV_NBD[0m
tristate "Network block device support"
depends on [31mCONFIG_NET[0m
---help---
Saying Y here will allow your computer to be a client for network
block devices, i.e. it will be able to use block devices exported by
servers (mount file systems on them etc.). Communication between
client and server works over TCP/IP networking, but to the client
program this is hidden: it looks like a regular local file access to
a block device special file such as /dev/nd0.
Network block devices also allows you to run a block-device in
userland (making server and client physically the same computer,
communicating using the loopback network device).
Read <file:Documentation/admin-guide/blockdev/nbd.rst> for more information,
especially about where to find the server code, which runs in user
space and does not need special kernel support.
Note that this has nothing to do with the network file systems NFS
or Coda; you can say N here even if you intend to use NFS or Coda.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called nbd.
If unsure, say N.
config [31mCONFIG_BLK_DEV_SKD[0m
tristate "STEC S1120 Block Driver"
depends on [31mCONFIG_PCI[0m
depends on [31mCONFIG_64BIT[0m
---help---
Saying Y or [31mCONFIG_M[0m here will enable support for the
STEC, Inc. S1120 PCIe SSD.
Use device /dev/skd$N amd /dev/skd$Np$[31mCONFIG_M[0m.
config [31mCONFIG_BLK_DEV_SX8[0m
tristate "Promise SATA SX8 support"
depends on [31mCONFIG_PCI[0m
---help---
Saying Y or [31mCONFIG_M[0m here will enable support for the
Promise SATA SX8 controllers.
Use devices /dev/sx8/$N and /dev/sx8/$Np$[31mCONFIG_M[0m.
config [31mCONFIG_BLK_DEV_RAM[0m
tristate "RAM block device support"
---help---
Saying Y here will allow you to use a portion of your RAM memory as
a block device, so that you can make file systems on it, read and
write to it and do all the other things that you can do with normal
block devices (such as hard drives). It is usually used to load and
store a copy of a minimal root file system off of a floppy into RAM
during the initial install of Linux.
Note that the kernel command line option "ramdisk=XX" is now obsolete.
For details, read <file:Documentation/admin-guide/blockdev/ramdisk.rst>.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called brd. An alias "rd" has been defined
for historical reasons.
Most normal users won't need the RAM disk functionality, and can
thus say N here.
config [31mCONFIG_BLK_DEV_RAM_COUNT[0m
int "Default number of RAM disks"
default "16"
depends on [31mCONFIG_BLK_DEV_RAM[0m
help
The default value is 16 RAM disks. Change this if you know what you
are doing. If you boot from a filesystem that needs to be extracted
in memory, you will need at least one RAM disk (e.g. root on cramfs).
config [31mCONFIG_BLK_DEV_RAM_SIZE[0m
int "Default RAM disk size (kbytes)"
depends on [31mCONFIG_BLK_DEV_RAM[0m
default "4096"
help
The default value is 4096 kilobytes. Only change this if you know
what you are doing.
config [31mCONFIG_CDROM_PKTCDVD[0m
tristate "Packet writing on CD/DVD media (DEPRECATED)"
depends on ![31mCONFIG_UML[0m
select [31mCONFIG_CDROM[0m
select [31mCONFIG_BLK_SCSI_REQUEST[0m
help
Note: This driver is deprecated and will be removed from the
kernel in the near future!
If you have a [31mCONFIG_CDROM[0m/DVD drive that supports packet writing, say
Y to include support. It should work with any [31mCONFIG_MMC[0m/Mt Fuji
compliant ATAPI or [31mCONFIG_SCSI[0m drive, which is just about any newer
DVD/CD writer.
Currently only writing to CD-RW, DVD-RW, DVD+RW and DVDRAM discs
is possible.
DVD-RW disks must be in restricted overwrite mode.
See the file <file:Documentation/cdrom/packet-writing.rst>
for further information on the use of this driver.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called pktcdvd.
config [31mCONFIG_CDROM_PKTCDVD_BUFFERS[0m
int "Free buffers for data gathering"
depends on [31mCONFIG_CDROM_PKTCDVD[0m
default "8"
help
This controls the maximum number of active concurrent packets. More
concurrent packets can increase write performance, but also require
more memory. Each concurrent packet will require approximately 64Kb
of non-swappable kernel memory, memory which will be allocated when
a disc is opened for writing.
config [31mCONFIG_CDROM_PKTCDVD_WCACHE[0m
bool "Enable write caching"
depends on [31mCONFIG_CDROM_PKTCDVD[0m
help
If enabled, write caching will be set for the CD-R/W device. For now
this option is dangerous unless the CD-RW media is known good, as we
don't do deferred write error handling yet.
config [31mCONFIG_ATA_OVER_ETH[0m
tristate "ATA over Ethernet support"
depends on [31mCONFIG_NET[0m
help
This driver provides Support for [31mCONFIG_ATA[0m over Ethernet block
devices like the Coraid EtherDrive (R) Storage Blade.
config [31mCONFIG_SUNVDC[0m
tristate "Sun Virtual Disk Client support"
depends on [31mCONFIG_SUN_LDOMS[0m
help
Support for virtual disk devices as a client under Sun
Logical Domains.
source "drivers/s390/block/Kconfig"
config [31mCONFIG_XILINX_SYSACE[0m
tristate "Xilinx SystemACE support"
depends on [31mCONFIG_4xx[0m || [31mCONFIG_MICROBLAZE[0m
help
Include support for the Xilinx SystemACE CompactFlash interface
config [31mCONFIG_XEN_BLKDEV_FRONTEND[0m
tristate "Xen virtual block device support"
depends on [31mCONFIG_XEN[0m
default y
select [31mCONFIG_XEN_XENBUS_FRONTEND[0m
help
This driver implements the front-end of the Xen virtual
block device driver. It communicates with a back-end driver
in another domain which drives the actual block device.
config [31mCONFIG_XEN_BLKDEV_BACKEND[0m
tristate "Xen block-device backend driver"
depends on [31mCONFIG_XEN_BACKEND[0m
help
The block-device backend driver allows the kernel to export its
block devices to other guests via a high-performance shared-memory
interface.
The corresponding Linux frontend driver is enabled by the
CONFIG_XEN_BLKDEV_FRONTEND configuration option.
The backend driver attaches itself to a any block device specified
in the XenBus configuration. There are no limits to what the block
device as long as it has a major and minor.
If you are compiling a kernel to run in a Xen block backend driver
domain (often this is domain 0) you should say Y here. To
compile this driver as a module, chose [31mCONFIG_M[0m here: the module
will be called xen-blkback.
config [31mCONFIG_VIRTIO_BLK[0m
tristate "Virtio block driver"
depends on [31mCONFIG_VIRTIO[0m
---help---
This is the virtual block driver for virtio. It can be used with
QEMU based VMMs (like [31mCONFIG_KVM[0m or Xen). Say Y or [31mCONFIG_M[0m.
config [31mCONFIG_VIRTIO_BLK_SCSI[0m
bool "SCSI passthrough request for the Virtio block driver"
depends on [31mCONFIG_VIRTIO_BLK[0m
select [31mCONFIG_BLK_SCSI_REQUEST[0m
---help---
Enable support for [31mCONFIG_SCSI[0m passthrough (e.g. the SG_IO ioctl) on
virtio-blk devices. This is only supported for the legacy
virtio protocol and not enabled by default by any hypervisor.
You probably want to use virtio-scsi instead.
config [31mCONFIG_BLK_DEV_RBD[0m
tristate "Rados block device (RBD)"
depends on [31mCONFIG_INET[0m && [31mCONFIG_BLOCK[0m
select [31mCONFIG_CEPH_LIB[0m
select [31mCONFIG_LIBCRC32C[0m
select [31mCONFIG_CRYPTO_AES[0m
select [31mCONFIG_CRYPTO[0m
help
Say Y here if you want include the Rados block device, which stripes
a block device over objects stored in the Ceph distributed object
store.
More information at http://ceph.newdream.net/.
If unsure, say N.
config [31mCONFIG_BLK_DEV_RSXX[0m
tristate "IBM Flash Adapter 900GB Full Height PCIe Device Driver"
depends on [31mCONFIG_PCI[0m
help
Device driver for IBM's high speed PCIe SSD
storage device: Flash Adapter 900GB Full Height.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called rsxx.
endif # [31mCONFIG_BLK_DEV[0m