xref: /linux/block/Kconfig (revision ee86418d39f28dd10d27c9d7906d8c26c1293e69)
13a65dfe8SJens Axboe#
23a65dfe8SJens Axboe# Block layer core configuration
33a65dfe8SJens Axboe#
416ed002fSJan Engelhardtmenuconfig BLOCK
551d7513aSJens Axboe       bool "Enable the block layer" if EMBEDDED
69361401eSDavid Howells       default y
79361401eSDavid Howells       help
8*ee86418dSNick Andrew	 Provide block layer support for the kernel.
99361401eSDavid Howells
10*ee86418dSNick Andrew	 Disable this option to remove the block layer support from the
11*ee86418dSNick Andrew	 kernel. This may be useful for embedded devices.
12*ee86418dSNick Andrew
13*ee86418dSNick Andrew	 If this option is disabled:
14*ee86418dSNick Andrew
15*ee86418dSNick Andrew	   - block device files will become unusable
16*ee86418dSNick Andrew	   - some filesystems (such as ext3) will become unavailable.
17*ee86418dSNick Andrew
18*ee86418dSNick Andrew	 Also, SCSI character devices and USB storage will be disabled since
19*ee86418dSNick Andrew	 they make use of various block layer definitions and facilities.
209361401eSDavid Howells
219361401eSDavid Howells	 Say Y here unless you know you really don't want to mount disks and
229361401eSDavid Howells	 suchlike.
239361401eSDavid Howells
249361401eSDavid Howellsif BLOCK
259361401eSDavid Howells
263a65dfe8SJens Axboeconfig LBD
273a65dfe8SJens Axboe	bool "Support for Large Block Devices"
28e6243863SMatthew Wilcox	depends on !64BIT
293a65dfe8SJens Axboe	help
30*ee86418dSNick Andrew	  Enable block devices of size 2TB and larger.
31*ee86418dSNick Andrew
32*ee86418dSNick Andrew	  This option is required to support the full capacity of large
33*ee86418dSNick Andrew	  (2TB+) block devices, including RAID, disk, Network Block Device,
34*ee86418dSNick Andrew	  Logical Volume Manager (LVM) and loopback.
35*ee86418dSNick Andrew
36*ee86418dSNick Andrew	  For example, RAID devices are frequently bigger than the capacity
37*ee86418dSNick Andrew	  of the largest individual hard drive.
38*ee86418dSNick Andrew
39*ee86418dSNick Andrew	  This option is not required if you have individual disk drives
40*ee86418dSNick Andrew	  which total 2TB+ and you are not aggregating the capacity into
41*ee86418dSNick Andrew	  a large block device (e.g. using RAID or LVM).
42*ee86418dSNick Andrew
43*ee86418dSNick Andrew	  If unsure, say N.
443a65dfe8SJens Axboe
452056a782SJens Axboeconfig BLK_DEV_IO_TRACE
462056a782SJens Axboe	bool "Support for tracing block io actions"
4709540e69SJens Axboe	depends on SYSFS
482056a782SJens Axboe	select RELAY
492056a782SJens Axboe	select DEBUG_FS
502056a782SJens Axboe	help
51*ee86418dSNick Andrew	  Say Y here if you want to be able to trace the block layer actions
522056a782SJens Axboe	  on a given queue. Tracing allows you to see any traffic happening
532056a782SJens Axboe	  on a block device queue. For more information (and the userspace
54*ee86418dSNick Andrew	  support tools needed), fetch the blktrace tools from:
552056a782SJens Axboe
5675ce6facSJens Axboe	  git://git.kernel.dk/blktrace.git
572056a782SJens Axboe
58*ee86418dSNick Andrew	  If unsure, say N.
59*ee86418dSNick Andrew
60a0f62ac6STakashi Satoconfig LSF
61a0f62ac6STakashi Sato	bool "Support for Large Single Files"
62e6243863SMatthew Wilcox	depends on !64BIT
63a0f62ac6STakashi Sato	help
64*ee86418dSNick Andrew	  Say Y here if you want to be able to handle very large files (2TB
65*ee86418dSNick Andrew	  and larger), otherwise say N.
6688b9adb0STrond Myklebust
6788b9adb0STrond Myklebust	  If unsure, say Y.
68a0f62ac6STakashi Sato
693d6392cfSJens Axboeconfig BLK_DEV_BSG
70319a7b7fSFUJITA Tomonori	bool "Block layer SG support v4 (EXPERIMENTAL)"
7180ed71ceSJames Bottomley	depends on EXPERIMENTAL
723d6392cfSJens Axboe	---help---
73319a7b7fSFUJITA Tomonori	  Saying Y here will enable generic SG (SCSI generic) v4 support
74319a7b7fSFUJITA Tomonori	  for any block device.
75319a7b7fSFUJITA Tomonori
76319a7b7fSFUJITA Tomonori	  Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4
77319a7b7fSFUJITA Tomonori	  can handle complicated SCSI commands: tagged variable length cdbs
78319a7b7fSFUJITA Tomonori	  with bidirectional data transfers and generic request/response
79319a7b7fSFUJITA Tomonori	  protocols (e.g. Task Management Functions and SMP in Serial
80319a7b7fSFUJITA Tomonori	  Attached SCSI).
813d6392cfSJens Axboe
82*ee86418dSNick Andrew	  If unsure, say N.
83*ee86418dSNick Andrew
842b9e0aaeSLinus Torvaldsendif # BLOCK
852b9e0aaeSLinus Torvalds
8699874d50SJens Axboeconfig BLOCK_COMPAT
8799874d50SJens Axboe	bool
882b9e0aaeSLinus Torvalds	depends on BLOCK && COMPAT
8999874d50SJens Axboe	default y
9099874d50SJens Axboe
913a65dfe8SJens Axboesource block/Kconfig.iosched
92