xref: /linux/drivers/block/Kconfig (revision 0dfb36b2dcb666f116ba314e631bd3bc632c44d1)
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"
20*edd86506SAndreas Hindborgsource "drivers/block/rnull/Kconfig"
21f2298c04SJens Axboe
221da177e4SLinus Torvaldsconfig BLK_DEV_FD
231da177e4SLinus Torvalds	tristate "Normal floppy disk support"
24a08b6b79Sviro@ZenIV.linux.org.uk	depends on ARCH_MAY_HAVE_PC_FDC
25a7f7f624SMasahiro Yamada	help
261da177e4SLinus Torvalds	  If you want to use the floppy disk drive(s) of your PC under Linux,
271da177e4SLinus Torvalds	  say Y. Information about this driver, especially important for IBM
2831c00fc1SRandy Dunlap	  Thinkpad users, is contained in
29e7751617SMauro Carvalho Chehab	  <file:Documentation/admin-guide/blockdev/floppy.rst>.
301da177e4SLinus Torvalds	  That file also contains the location of the Floppy driver FAQ as
311da177e4SLinus Torvalds	  well as location of the fdutils package used to configure additional
321da177e4SLinus Torvalds	  parameters of the driver at run time.
331da177e4SLinus Torvalds
341da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
351da177e4SLinus Torvalds	  module will be called floppy.
361da177e4SLinus Torvalds
37233087caSWilly Tarreauconfig BLK_DEV_FD_RAWCMD
38233087caSWilly Tarreau	bool "Support for raw floppy disk commands (DEPRECATED)"
39233087caSWilly Tarreau	depends on BLK_DEV_FD
40233087caSWilly Tarreau	help
41233087caSWilly Tarreau	  If you want to use actual physical floppies and expect to do
42233087caSWilly Tarreau	  special low-level hardware accesses to them (access and use
43233087caSWilly Tarreau	  non-standard formats, for example), then enable this.
44233087caSWilly Tarreau
45233087caSWilly Tarreau	  Note that the code enabled by this option is rarely used and
46233087caSWilly Tarreau	  might be unstable or insecure, and distros should not enable it.
47233087caSWilly Tarreau
48233087caSWilly Tarreau	  Note: FDRAWCMD is deprecated and will be removed from the kernel
49233087caSWilly Tarreau	  in the near future.
50233087caSWilly Tarreau
51233087caSWilly Tarreau	  If unsure, say N.
52233087caSWilly Tarreau
531da177e4SLinus Torvaldsconfig AMIGA_FLOPPY
541da177e4SLinus Torvalds	tristate "Amiga floppy support"
551da177e4SLinus Torvalds	depends on AMIGA
561da177e4SLinus Torvalds
571da177e4SLinus Torvaldsconfig ATARI_FLOPPY
581da177e4SLinus Torvalds	tristate "Atari floppy support"
591da177e4SLinus Torvalds	depends on ATARI
601da177e4SLinus Torvalds
611da177e4SLinus Torvaldsconfig MAC_FLOPPY
621da177e4SLinus Torvalds	tristate "Support for PowerMac floppy"
631da177e4SLinus Torvalds	depends on PPC_PMAC && !PPC_PMAC64
641da177e4SLinus Torvalds	help
651da177e4SLinus Torvalds	  If you have a SWIM-3 (Super Woz Integrated Machine 3; from Apple)
661da177e4SLinus Torvalds	  floppy controller, say Y here. Most commonly found in PowerMacs.
671da177e4SLinus Torvalds
688852ecd9SLaurent Vivierconfig BLK_DEV_SWIM
698852ecd9SLaurent Vivier	tristate "Support for SWIM Macintosh floppy"
704c6e5bc8SChristoph Hellwig	depends on M68K && MAC && !HIGHMEM
718852ecd9SLaurent Vivier	help
728852ecd9SLaurent Vivier	  You should select this option if you want floppy support
738852ecd9SLaurent Vivier	  and you don't have a II, IIfx, Q900, Q950 or AV series.
748852ecd9SLaurent Vivier
751da177e4SLinus Torvaldsconfig AMIGA_Z2RAM
761da177e4SLinus Torvalds	tristate "Amiga Zorro II ramdisk support"
771da177e4SLinus Torvalds	depends on ZORRO
781da177e4SLinus Torvalds	help
791da177e4SLinus Torvalds	  This enables support for using Chip RAM and Zorro II RAM as a
801da177e4SLinus Torvalds	  ramdisk or as a swap partition. Say Y if you want to include this
811da177e4SLinus Torvalds	  driver in the kernel.
821da177e4SLinus Torvalds
831da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
841da177e4SLinus Torvalds	  module will be called z2ram.
851da177e4SLinus Torvalds
86d9b2a2bbSLauri Kasanenconfig N64CART
87d9b2a2bbSLauri Kasanen	bool "N64 cart support"
88d9b2a2bbSLauri Kasanen	depends on MACH_NINTENDO64
89d9b2a2bbSLauri Kasanen	help
90d9b2a2bbSLauri Kasanen	  Support for the N64 cart.
91d9b2a2bbSLauri Kasanen
922a750166SBart Van Asscheconfig CDROM
93a116895fSJens Axboe	tristate
942a750166SBart Van Assche
952395e463SRandy Dunlapconfig GDROM
962395e463SRandy Dunlap	tristate "SEGA Dreamcast GD-ROM drive"
972395e463SRandy Dunlap	depends on SH_DREAMCAST
982a750166SBart Van Assche	select CDROM
992395e463SRandy Dunlap	help
1002395e463SRandy Dunlap	  A standard SEGA Dreamcast comes with a modified CD ROM drive called a
1012395e463SRandy Dunlap	  "GD-ROM" by SEGA to signify it is capable of reading special disks
1022395e463SRandy Dunlap	  with up to 1 GB of data. This drive will also read standard CD ROM
1032395e463SRandy Dunlap	  disks. Select this option to access any disks in your GD ROM drive.
1042395e463SRandy Dunlap	  Most users will want to say "Y" here.
1052395e463SRandy Dunlap	  You can also build this as a module which will be called gdrom.
1062395e463SRandy Dunlap
10788523a61SSam Bradshawsource "drivers/block/mtip32xx/Kconfig"
10888523a61SSam Bradshaw
109cd67e10aSMinchan Kimsource "drivers/block/zram/Kconfig"
110cd67e10aSMinchan Kim
1111da177e4SLinus Torvaldsconfig BLK_DEV_UBD
1121da177e4SLinus Torvalds	bool "Virtual block device"
1131da177e4SLinus Torvalds	depends on UML
114a7f7f624SMasahiro Yamada	help
1151da177e4SLinus Torvalds          The User-Mode Linux port includes a driver called UBD which will let
1161da177e4SLinus Torvalds          you access arbitrary files on the host computer as block devices.
1171da177e4SLinus Torvalds          Unless you know that you do not need such virtual block devices say
1181da177e4SLinus Torvalds          Y here.
1191da177e4SLinus Torvalds
1201da177e4SLinus Torvaldsconfig BLK_DEV_UBD_SYNC
1211da177e4SLinus Torvalds	bool "Always do synchronous disk IO for UBD"
1221da177e4SLinus Torvalds	depends on BLK_DEV_UBD
123a7f7f624SMasahiro Yamada	help
1241da177e4SLinus Torvalds	  Writes to the virtual block device are not immediately written to the
1251da177e4SLinus Torvalds	  host's disk; this may cause problems if, for example, the User-Mode
1261da177e4SLinus Torvalds	  Linux 'Virtual Machine' uses a journalling filesystem and the host
1271da177e4SLinus Torvalds	  computer crashes.
1281da177e4SLinus Torvalds
1291da177e4SLinus Torvalds          Synchronous operation (i.e. always writing data to the host's disk
1301da177e4SLinus Torvalds          immediately) is configurable on a per-UBD basis by using a special
1311da177e4SLinus Torvalds          kernel command line option.  Alternatively, you can say Y here to
1321da177e4SLinus Torvalds          turn on synchronous operation by default for all block devices.
1331da177e4SLinus Torvalds
134fb6f20ecSJan Kara          If you're running a journalling file system (like xfs, for
1351da177e4SLinus Torvalds          example) in your virtual machine, you will want to say Y here.  If
1361da177e4SLinus Torvalds          you care for the safety of the data in your virtual machine, Y is a
1371da177e4SLinus Torvalds          wise choice too.  In all other cases (for example, if you're just
1381da177e4SLinus Torvalds          playing around with User-Mode Linux) you can choose N.
1391da177e4SLinus Torvalds
1401da177e4SLinus Torvaldsconfig BLK_DEV_COW_COMMON
1411da177e4SLinus Torvalds	bool
1421da177e4SLinus Torvalds	default BLK_DEV_UBD
1431da177e4SLinus Torvalds
1441da177e4SLinus Torvaldsconfig BLK_DEV_LOOP
1451da177e4SLinus Torvalds	tristate "Loopback device support"
146a7f7f624SMasahiro Yamada	help
1471da177e4SLinus Torvalds	  Saying Y here will allow you to use a regular file as a block
1481da177e4SLinus Torvalds	  device; you can then create a file system on that block device and
1491da177e4SLinus Torvalds	  mount it just as you would mount other block devices such as hard
1501da177e4SLinus Torvalds	  drive partitions, CD-ROM drives or floppy drives. The loop devices
1511da177e4SLinus Torvalds	  are block special device files with major number 7 and typically
1521da177e4SLinus Torvalds	  called /dev/loop0, /dev/loop1 etc.
1531da177e4SLinus Torvalds
1541da177e4SLinus Torvalds	  This is useful if you want to check an ISO 9660 file system before
1551da177e4SLinus Torvalds	  burning the CD, or if you want to use floppy images without first
1561da177e4SLinus Torvalds	  writing them to floppy. Furthermore, some Linux distributions avoid
1571da177e4SLinus Torvalds	  the need for a dedicated Linux partition by keeping their complete
1581da177e4SLinus Torvalds	  root file system inside a DOS FAT file using this loop device
1591da177e4SLinus Torvalds	  driver.
1601da177e4SLinus Torvalds
1611da177e4SLinus Torvalds	  To use the loop device, you need the losetup utility, found in the
1621da177e4SLinus Torvalds	  util-linux package, see
1634f6cce39SSeongJae Park	  <https://www.kernel.org/pub/linux/utils/util-linux/>.
1641da177e4SLinus Torvalds
1651da177e4SLinus Torvalds	  The loop device driver can also be used to "hide" a file system in
1661da177e4SLinus Torvalds	  a disk partition, floppy, or regular file, either using encryption
1671da177e4SLinus Torvalds	  (scrambling the data) or steganography (hiding the data in the low
1681da177e4SLinus Torvalds	  bits of, say, a sound file). This is also safe if the file resides
1691da177e4SLinus Torvalds	  on a remote file server.
1701da177e4SLinus Torvalds
1711da177e4SLinus Torvalds	  Note that this loop device has nothing to do with the loopback
1721da177e4SLinus Torvalds	  device used for network connections from the machine to itself.
1731da177e4SLinus Torvalds
1741da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
1751da177e4SLinus Torvalds	  module will be called loop.
1761da177e4SLinus Torvalds
1771da177e4SLinus Torvalds	  Most users will answer N here.
1781da177e4SLinus Torvalds
179d134b00bSKay Sieversconfig BLK_DEV_LOOP_MIN_COUNT
180d134b00bSKay Sievers	int "Number of loop devices to pre-create at init time"
181d134b00bSKay Sievers	depends on BLK_DEV_LOOP
182d134b00bSKay Sievers	default 8
183d134b00bSKay Sievers	help
184d134b00bSKay Sievers	  Static number of loop devices to be unconditionally pre-created
185d134b00bSKay Sievers	  at init time.
186d134b00bSKay Sievers
187d134b00bSKay Sievers	  This default value can be overwritten on the kernel command
188d134b00bSKay Sievers	  line or with module-parameter loop.max_loop.
189d134b00bSKay Sievers
190d134b00bSKay Sievers	  The historic default is 8. If a late 2011 version of losetup(8)
191d134b00bSKay Sievers	  is used, it can be set to 0, since needed loop devices can be
192d134b00bSKay Sievers	  dynamically allocated with the /dev/loop-control interface.
193d134b00bSKay Sievers
194b411b363SPhilipp Reisnersource "drivers/block/drbd/Kconfig"
195b411b363SPhilipp Reisner
1961da177e4SLinus Torvaldsconfig BLK_DEV_NBD
1971da177e4SLinus Torvalds	tristate "Network block device support"
1981da177e4SLinus Torvalds	depends on NET
199a7f7f624SMasahiro Yamada	help
2001da177e4SLinus Torvalds	  Saying Y here will allow your computer to be a client for network
2011da177e4SLinus Torvalds	  block devices, i.e. it will be able to use block devices exported by
2021da177e4SLinus Torvalds	  servers (mount file systems on them etc.). Communication between
2031da177e4SLinus Torvalds	  client and server works over TCP/IP networking, but to the client
2041da177e4SLinus Torvalds	  program this is hidden: it looks like a regular local file access to
2051da177e4SLinus Torvalds	  a block device special file such as /dev/nd0.
2061da177e4SLinus Torvalds
2071da177e4SLinus Torvalds	  Network block devices also allows you to run a block-device in
2081da177e4SLinus Torvalds	  userland (making server and client physically the same computer,
2091da177e4SLinus Torvalds	  communicating using the loopback network device).
2101da177e4SLinus Torvalds
211e7751617SMauro Carvalho Chehab	  Read <file:Documentation/admin-guide/blockdev/nbd.rst> for more information,
21231c00fc1SRandy Dunlap	  especially about where to find the server code, which runs in user
21331c00fc1SRandy Dunlap	  space and does not need special kernel support.
2141da177e4SLinus Torvalds
2151da177e4SLinus Torvalds	  Note that this has nothing to do with the network file systems NFS
2161da177e4SLinus Torvalds	  or Coda; you can say N here even if you intend to use NFS or Coda.
2171da177e4SLinus Torvalds
2181da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
2191da177e4SLinus Torvalds	  module will be called nbd.
2201da177e4SLinus Torvalds
2211da177e4SLinus Torvalds	  If unsure, say N.
2221da177e4SLinus Torvalds
2231da177e4SLinus Torvaldsconfig BLK_DEV_RAM
2249db5579bSNick Piggin	tristate "RAM block device support"
225a7f7f624SMasahiro Yamada	help
2261da177e4SLinus Torvalds	  Saying Y here will allow you to use a portion of your RAM memory as
2271da177e4SLinus Torvalds	  a block device, so that you can make file systems on it, read and
2281da177e4SLinus Torvalds	  write to it and do all the other things that you can do with normal
2291da177e4SLinus Torvalds	  block devices (such as hard drives). It is usually used to load and
2301da177e4SLinus Torvalds	  store a copy of a minimal root file system off of a floppy into RAM
2311da177e4SLinus Torvalds	  during the initial install of Linux.
2321da177e4SLinus Torvalds
23331c00fc1SRandy Dunlap	  Note that the kernel command line option "ramdisk=XX" is now obsolete.
234e7751617SMauro Carvalho Chehab	  For details, read <file:Documentation/admin-guide/blockdev/ramdisk.rst>.
2351da177e4SLinus Torvalds
2361da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
237a3b25d9bSFabian Frederick	  module will be called brd. An alias "rd" has been defined
238a3b25d9bSFabian Frederick	  for historical reasons.
2391da177e4SLinus Torvalds
2401da177e4SLinus Torvalds	  Most normal users won't need the RAM disk functionality, and can
2411da177e4SLinus Torvalds	  thus say N here.
2421da177e4SLinus Torvalds
2431da177e4SLinus Torvaldsconfig BLK_DEV_RAM_COUNT
244a687fb18SAdrian Bunk	int "Default number of RAM disks"
2451da177e4SLinus Torvalds	default "16"
246a687fb18SAdrian Bunk	depends on BLK_DEV_RAM
2471da177e4SLinus Torvalds	help
2482e977c85SPatrick Ringl	  The default value is 16 RAM disks. Change this if you know what you
2491da177e4SLinus Torvalds	  are doing. If you boot from a filesystem that needs to be extracted
2501da177e4SLinus Torvalds	  in memory, you will need at least one RAM disk (e.g. root on cramfs).
2511da177e4SLinus Torvalds
2521da177e4SLinus Torvaldsconfig BLK_DEV_RAM_SIZE
2531da177e4SLinus Torvalds	int "Default RAM disk size (kbytes)"
2541da177e4SLinus Torvalds	depends on BLK_DEV_RAM
2551da177e4SLinus Torvalds	default "4096"
2561da177e4SLinus Torvalds	help
2571da177e4SLinus Torvalds	  The default value is 4096 kilobytes. Only change this if you know
2582e977c85SPatrick Ringl	  what you are doing.
2591da177e4SLinus Torvalds
2601da177e4SLinus Torvaldsconfig ATA_OVER_ETH
2611da177e4SLinus Torvalds	tristate "ATA over Ethernet support"
2621da177e4SLinus Torvalds	depends on NET
2631da177e4SLinus Torvalds	help
2641da177e4SLinus Torvalds	This driver provides Support for ATA over Ethernet block
2651da177e4SLinus Torvalds	devices like the Coraid EtherDrive (R) Storage Blade.
2661da177e4SLinus Torvalds
267667ef3c3SDavid S. Millerconfig SUNVDC
268667ef3c3SDavid S. Miller	tristate "Sun Virtual Disk Client support"
269667ef3c3SDavid S. Miller	depends on SUN_LDOMS
270667ef3c3SDavid S. Miller	help
271667ef3c3SDavid S. Miller	  Support for virtual disk devices as a client under Sun
272667ef3c3SDavid S. Miller	  Logical Domains.
273667ef3c3SDavid S. Miller
27461d48c2cSMartin Schwidefskysource "drivers/s390/block/Kconfig"
27561d48c2cSMartin Schwidefsky
2769f27ee59SJeremy Fitzhardingeconfig XEN_BLKDEV_FRONTEND
2779f27ee59SJeremy Fitzhardinge	tristate "Xen virtual block device support"
2789f27ee59SJeremy Fitzhardinge	depends on XEN
2799f27ee59SJeremy Fitzhardinge	default y
2802de06cc1SIan Campbell	select XEN_XENBUS_FRONTEND
2819f27ee59SJeremy Fitzhardinge	help
2829f27ee59SJeremy Fitzhardinge	  This driver implements the front-end of the Xen virtual
2839f27ee59SJeremy Fitzhardinge	  block device driver.  It communicates with a back-end driver
2849f27ee59SJeremy Fitzhardinge	  in another domain which drives the actual block device.
2859f27ee59SJeremy Fitzhardinge
286dfc07b13SKonrad Rzeszutek Wilkconfig XEN_BLKDEV_BACKEND
287ea5e1161SKonrad Rzeszutek Wilk	tristate "Xen block-device backend driver"
288dfc07b13SKonrad Rzeszutek Wilk	depends on XEN_BACKEND
289dfc07b13SKonrad Rzeszutek Wilk	help
290dfc07b13SKonrad Rzeszutek Wilk	  The block-device backend driver allows the kernel to export its
291dfc07b13SKonrad Rzeszutek Wilk	  block devices to other guests via a high-performance shared-memory
292dfc07b13SKonrad Rzeszutek Wilk	  interface.
293dfc07b13SKonrad Rzeszutek Wilk
294a4c34858SKonrad Rzeszutek Wilk	  The corresponding Linux frontend driver is enabled by the
295a4c34858SKonrad Rzeszutek Wilk	  CONFIG_XEN_BLKDEV_FRONTEND configuration option.
296a4c34858SKonrad Rzeszutek Wilk
297a4c34858SKonrad Rzeszutek Wilk	  The backend driver attaches itself to a any block device specified
298a4c34858SKonrad Rzeszutek Wilk	  in the XenBus configuration. There are no limits to what the block
299a4c34858SKonrad Rzeszutek Wilk	  device as long as it has a major and minor.
300a4c34858SKonrad Rzeszutek Wilk
301a4c34858SKonrad Rzeszutek Wilk	  If you are compiling a kernel to run in a Xen block backend driver
302a4c34858SKonrad Rzeszutek Wilk	  domain (often this is domain 0) you should say Y here. To
303a4c34858SKonrad Rzeszutek Wilk	  compile this driver as a module, chose M here: the module
304a4c34858SKonrad Rzeszutek Wilk	  will be called xen-blkback.
305a4c34858SKonrad Rzeszutek Wilk
306a4c34858SKonrad Rzeszutek Wilk
307e467cde2SRusty Russellconfig VIRTIO_BLK
308b8977285SKees Cook	tristate "Virtio block driver"
309b8977285SKees Cook	depends on VIRTIO
31002746e26SMax Gurtovoy	select SG_POOL
311a7f7f624SMasahiro Yamada	help
3120ad07ec1SAnthony Liguori	  This is the virtual block driver for virtio.  It can be used with
313ecda85e7SJuergen Gross          QEMU based VMMs (like KVM or Xen).  Say Y or M.
314e467cde2SRusty Russell
315602adf40SYehuda Sadehconfig BLK_DEV_RBD
316602adf40SYehuda Sadeh	tristate "Rados block device (RBD)"
317b8977285SKees Cook	depends on INET && BLOCK
318602adf40SYehuda Sadeh	select CEPH_LIB
319602adf40SYehuda Sadeh	help
320602adf40SYehuda Sadeh	  Say Y here if you want include the Rados block device, which stripes
321602adf40SYehuda Sadeh	  a block device over objects stored in the Ceph distributed object
322602adf40SYehuda Sadeh	  store.
323602adf40SYehuda Sadeh
324602adf40SYehuda Sadeh	  More information at http://ceph.newdream.net/.
325602adf40SYehuda Sadeh
326602adf40SYehuda Sadeh	  If unsure, say N.
327602adf40SYehuda Sadeh
32871f28f31SMing Leiconfig BLK_DEV_UBLK
32971f28f31SMing Lei	tristate "Userspace block driver (Experimental)"
33071f28f31SMing Lei	select IO_URING
33171f28f31SMing Lei	help
33271f28f31SMing Lei	  io_uring based userspace block driver. Together with ublk server, ublk
33371f28f31SMing Lei	  has been working well, but interface with userspace or command data
33471f28f31SMing Lei	  definition isn't finalized yet, and might change according to future
33571f28f31SMing Lei	  requirement, so mark is as experimental now.
33671f28f31SMing Lei
3372d786e66SMing Leiconfig BLKDEV_UBLK_LEGACY_OPCODES
3382d786e66SMing Lei	bool "Support legacy command opcode"
3392d786e66SMing Lei	depends on BLK_DEV_UBLK
3402d786e66SMing Lei	default y
3412d786e66SMing Lei	help
3422d786e66SMing Lei	  ublk driver started to take plain command encoding, which turns out
3432d786e66SMing Lei	  one bad way. The traditional ioctl command opcode encodes more
3442d786e66SMing Lei	  info and basically defines each code uniquely, so opcode conflict
3452d786e66SMing Lei	  is avoided, and driver can handle wrong command easily, meantime it
3462d786e66SMing Lei	  may help security subsystem to audit io_uring command.
3472d786e66SMing Lei
3482d786e66SMing Lei	  Say Y if your application still uses legacy command opcode.
3492d786e66SMing Lei
3502d786e66SMing Lei	  Say N if you don't want to support legacy command opcode. It is
3512d786e66SMing Lei	  suggested to enable N if your application(ublk server) switches to
3522d786e66SMing Lei	  ioctl command encoding.
3532d786e66SMing Lei
354bc018853SJack Wangsource "drivers/block/rnbd/Kconfig"
355bc018853SJack Wang
356eb0570c7SDamien Le Moalconfig BLK_DEV_ZONED_LOOP
357eb0570c7SDamien Le Moal	tristate "Zoned loopback device support"
358eb0570c7SDamien Le Moal	depends on BLK_DEV_ZONED
359eb0570c7SDamien Le Moal	help
360eb0570c7SDamien Le Moal	  Saying Y here will allow you to use create a zoned block device using
361eb0570c7SDamien Le Moal	  regular files for zones (one file per zones). This is useful to test
362eb0570c7SDamien Le Moal	  file systems, device mapper and applications that support zoned block
363eb0570c7SDamien Le Moal	  devices. To create a zoned loop device, no user utility is needed, a
364eb0570c7SDamien Le Moal	  zoned loop device can be created (or re-started) using a command
365eb0570c7SDamien Le Moal	  like:
366eb0570c7SDamien Le Moal
367eb0570c7SDamien Le Moal	  echo "add id=0,zone_size_mb=256,capacity_mb=16384,conv_zones=11" > \
368eb0570c7SDamien Le Moal		/dev/zloop-control
369eb0570c7SDamien Le Moal
3709e4f11c1SDamien Le Moal	  See Documentation/admin-guide/blockdev/zoned_loop.rst for usage
3719e4f11c1SDamien Le Moal	  details.
3729e4f11c1SDamien Le Moal
373eb0570c7SDamien Le Moal	  If unsure, say N.
374eb0570c7SDamien Le Moal
375fd11d171SJan Engelhardtendif # BLK_DEV
376