Blame view

block/Kconfig 3.77 KB
3a65dfe8c   Jens Axboe   [BLOCK] Move all ...
1
2
3
  #
  # Block layer core configuration
  #
16ed002f2   Jan Engelhardt   Use menuconfigs i...
4
  menuconfig BLOCK
6a108a14f   David Rientjes   kconfig: rename C...
5
         bool "Enable the block layer" if EXPERT
9361401eb   David Howells   [PATCH] BLOCK: Ma...
6
         default y
88459642c   Omar Sandoval   blk-mq: abstract ...
7
         select SBITMAP
9361401eb   David Howells   [PATCH] BLOCK: Ma...
8
         help
ee86418d3   Nick Andrew   Kconfig: clean up...
9
  	 Provide block layer support for the kernel.
9361401eb   David Howells   [PATCH] BLOCK: Ma...
10

ee86418d3   Nick Andrew   Kconfig: clean up...
11
12
13
14
15
16
17
18
19
20
  	 Disable this option to remove the block layer support from the
  	 kernel. This may be useful for embedded devices.
  
  	 If this option is disabled:
  
  	   - block device files will become unusable
  	   - some filesystems (such as ext3) will become unavailable.
  
  	 Also, SCSI character devices and USB storage will be disabled since
  	 they make use of various block layer definitions and facilities.
9361401eb   David Howells   [PATCH] BLOCK: Ma...
21
22
23
24
25
  
  	 Say Y here unless you know you really don't want to mount disks and
  	 suchlike.
  
  if BLOCK
90c699a9e   Bartlomiej Zolnierkiewicz   block: rename CON...
26
27
  config LBDAF
  	bool "Support for large (2TB+) block devices and files"
e62438630   Matthew Wilcox   [PATCH] Centralis...
28
  	depends on !64BIT
db29a6b49   Bartlomiej Zolnierkiewicz   block: enable by ...
29
  	default y
3a65dfe8c   Jens Axboe   [BLOCK] Move all ...
30
  	help
b3a6ffe16   Jens Axboe   Get rid of CONFIG...
31
  	  Enable block devices or files of size 2TB and larger.
ee86418d3   Nick Andrew   Kconfig: clean up...
32
33
34
35
  
  	  This option is required to support the full capacity of large
  	  (2TB+) block devices, including RAID, disk, Network Block Device,
  	  Logical Volume Manager (LVM) and loopback.
b3a6ffe16   Jens Axboe   Get rid of CONFIG...
36
37
38
  	
  	  This option also enables support for single files larger than
  	  2TB.
ee86418d3   Nick Andrew   Kconfig: clean up...
39

4d783b093   Theodore Ts'o   block: Add Kconfi...
40
41
  	  The ext4 filesystem requires that this feature be enabled in
  	  order to support filesystems that have the huge_file feature
db29a6b49   Bartlomiej Zolnierkiewicz   block: enable by ...
42
43
44
  	  enabled.  Otherwise, it will refuse to mount in the read-write
  	  mode any filesystems that use the huge_file feature, which is
  	  enabled by default by mke2fs.ext4.
4d783b093   Theodore Ts'o   block: Add Kconfi...
45

db29a6b49   Bartlomiej Zolnierkiewicz   block: enable by ...
46
47
48
  	  The GFS2 filesystem also requires this feature.
  
  	  If unsure, say Y.
3a65dfe8c   Jens Axboe   [BLOCK] Move all ...
49

3d6392cfb   Jens Axboe   bsg: support for ...
50
  config BLK_DEV_BSG
14d9fa352   John Stoffel   Make SCSI SG v4 d...
51
52
53
  	bool "Block layer SG support v4"
  	default y
  	help
ee86418d3   Nick Andrew   Kconfig: clean up...
54
55
56
57
58
59
60
61
  	  Saying Y here will enable generic SG (SCSI generic) v4 support
  	  for any block device.
  
  	  Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4
  	  can handle complicated SCSI commands: tagged variable length cdbs
  	  with bidirectional data transfers and generic request/response
  	  protocols (e.g. Task Management Functions and SMP in Serial
  	  Attached SCSI).
14d9fa352   John Stoffel   Make SCSI SG v4 d...
62
63
64
65
  	  This option is required by recent UDEV versions to properly
  	  access device serial numbers, etc.
  
  	  If unsure, say Y.
3d6392cfb   Jens Axboe   bsg: support for ...
66

aa387cc89   Mike Christie   block: add bsg he...
67
68
69
70
71
72
73
74
75
  config BLK_DEV_BSGLIB
  	bool "Block layer SG support v4 helper lib"
  	default n
  	select BLK_DEV_BSG
  	help
  	  Subsystems will normally enable this if needed. Users will not
  	  normally need to manually enable this.
  
  	  If unsure, say N.
7ba1ba12e   Martin K. Petersen   block: Block laye...
76
77
  config BLK_DEV_INTEGRITY
  	bool "Block layer data integrity support"
2341c2f8c   Martin K. Petersen   block: Add T10 Pr...
78
  	select CRC_T10DIF if BLK_DEV_INTEGRITY
7ba1ba12e   Martin K. Petersen   block: Block laye...
79
80
81
82
83
84
85
86
87
  	---help---
  	Some storage devices allow extra information to be
  	stored/retrieved to help protect the data.  The block layer
  	data integrity option provides hooks which can be used by
  	filesystems to ensure better data integrity.
  
  	Say yes here if you have a storage device that provides the
  	T10/SCSI Data Integrity Field or the T13/ATA External Path
  	Protection.  If in doubt, say N.
e43473b7f   Vivek Goyal   blkio: Core imple...
88
89
  config BLK_DEV_THROTTLING
  	bool "Block layer bio throttling support"
8e42e0a23   Kees Cook   block: remove CON...
90
  	depends on BLK_CGROUP=y
e43473b7f   Vivek Goyal   blkio: Core imple...
91
92
93
94
95
96
97
98
  	default n
  	---help---
  	Block layer bio throttling support. It can be used to limit
  	the IO rate to a device. IO rate policies are per cgroup and
  	one needs to mount and use blkio cgroup controller for creating
  	cgroups and specifying per device IO rate policies.
  
  	See Documentation/cgroups/blkio-controller.txt for more information.
080506ad0   Paul Gortmaker   block: change con...
99
  config BLK_CMDLINE_PARSER
bab55417b   Cai Zhiyong   block: support em...
100
101
102
  	bool "Block device command line partition parser"
  	default n
  	---help---
080506ad0   Paul Gortmaker   block: change con...
103
104
105
106
107
108
  	Enabling this option allows you to specify the partition layout from
  	the kernel boot args.  This is typically of use for embedded devices
  	which don't otherwise have any standardized method for listing the
  	partitions on a block device.
  
  	See Documentation/block/cmdline-partition.txt for more information.
bab55417b   Cai Zhiyong   block: support em...
109

9be96f3fd   Al Viro   move fs/partition...
110
111
112
113
114
  menu "Partition Types"
  
  source "block/partitions/Kconfig"
  
  endmenu
2b9e0aae1   Linus Torvalds   Only enable BLOCK...
115
  endif # BLOCK
99874d504   Jens Axboe   [BLOCK] Only incl...
116
117
  config BLOCK_COMPAT
  	bool
2b9e0aae1   Linus Torvalds   Only enable BLOCK...
118
  	depends on BLOCK && COMPAT
99874d504   Jens Axboe   [BLOCK] Only incl...
119
  	default y
8ec2ef2b6   Stephen Rothwell   blk_mq: linux/blk...
120
121
122
123
  config BLK_MQ_PCI
  	bool
  	depends on BLOCK && PCI
  	default y
3a65dfe8c   Jens Axboe   [BLOCK] Move all ...
124
  source block/Kconfig.iosched