Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #
  2. # Block layer core configuration
  3. #
  4. menuconfig BLOCK
  5. bool "Enable the block layer" if EXPERT
  6. default y
  7. select SBITMAP
  8. select SRCU
  9. help
  10. Provide block layer support for the kernel.
  11. Disable this option to remove the block layer support from the
  12. kernel. This may be useful for embedded devices.
  13. If this option is disabled:
  14. - block device files will become unusable
  15. - some filesystems (such as ext3) will become unavailable.
  16. Also, SCSI character devices and USB storage will be disabled since
  17. they make use of various block layer definitions and facilities.
  18. Say Y here unless you know you really don't want to mount disks and
  19. suchlike.
  20. if BLOCK
  21. config LBDAF
  22. bool "Support for large (2TB+) block devices and files"
  23. depends on !64BIT
  24. default y
  25. help
  26. Enable block devices or files of size 2TB and larger.
  27. This option is required to support the full capacity of large
  28. (2TB+) block devices, including RAID, disk, Network Block Device,
  29. Logical Volume Manager (LVM) and loopback.
  30. This option also enables support for single files larger than
  31. 2TB.
  32. The ext4 filesystem requires that this feature be enabled in
  33. order to support filesystems that have the huge_file feature
  34. enabled. Otherwise, it will refuse to mount in the read-write
  35. mode any filesystems that use the huge_file feature, which is
  36. enabled by default by mke2fs.ext4.
  37. The GFS2 filesystem also requires this feature.
  38. If unsure, say Y.
  39. config BLK_DEV_BSG
  40. bool "Block layer SG support v4"
  41. default y
  42. help
  43. Saying Y here will enable generic SG (SCSI generic) v4 support
  44. for any block device.
  45. Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4
  46. can handle complicated SCSI commands: tagged variable length cdbs
  47. with bidirectional data transfers and generic request/response
  48. protocols (e.g. Task Management Functions and SMP in Serial
  49. Attached SCSI).
  50. This option is required by recent UDEV versions to properly
  51. access device serial numbers, etc.
  52. If unsure, say Y.
  53. config BLK_DEV_BSGLIB
  54. bool "Block layer SG support v4 helper lib"
  55. default n
  56. select BLK_DEV_BSG
  57. help
  58. Subsystems will normally enable this if needed. Users will not
  59. normally need to manually enable this.
  60. If unsure, say N.
  61. config BLK_DEV_INTEGRITY
  62. bool "Block layer data integrity support"
  63. select CRC_T10DIF if BLK_DEV_INTEGRITY
  64. ---help---
  65. Some storage devices allow extra information to be
  66. stored/retrieved to help protect the data. The block layer
  67. data integrity option provides hooks which can be used by
  68. filesystems to ensure better data integrity.
  69. Say yes here if you have a storage device that provides the
  70. T10/SCSI Data Integrity Field or the T13/ATA External Path
  71. Protection. If in doubt, say N.
  72. config BLK_DEV_ZONED
  73. bool "Zoned block device support"
  74. ---help---
  75. Block layer zoned block device support. This option enables
  76. support for ZAC/ZBC host-managed and host-aware zoned block devices.
  77. Say yes here if you have a ZAC or ZBC storage device.
  78. config BLK_DEV_THROTTLING
  79. bool "Block layer bio throttling support"
  80. depends on BLK_CGROUP=y
  81. default n
  82. ---help---
  83. Block layer bio throttling support. It can be used to limit
  84. the IO rate to a device. IO rate policies are per cgroup and
  85. one needs to mount and use blkio cgroup controller for creating
  86. cgroups and specifying per device IO rate policies.
  87. See Documentation/cgroups/blkio-controller.txt for more information.
  88. config BLK_CMDLINE_PARSER
  89. bool "Block device command line partition parser"
  90. default n
  91. ---help---
  92. Enabling this option allows you to specify the partition layout from
  93. the kernel boot args. This is typically of use for embedded devices
  94. which don't otherwise have any standardized method for listing the
  95. partitions on a block device.
  96. See Documentation/block/cmdline-partition.txt for more information.
  97. config BLK_WBT
  98. bool "Enable support for block device writeback throttling"
  99. default n
  100. ---help---
  101. Enabling this option enables the block layer to throttle buffered
  102. background writeback from the VM, making it more smooth and having
  103. less impact on foreground operations. The throttling is done
  104. dynamically on an algorithm loosely based on CoDel, factoring in
  105. the realtime performance of the disk.
  106. config BLK_WBT_SQ
  107. bool "Single queue writeback throttling"
  108. default n
  109. depends on BLK_WBT
  110. ---help---
  111. Enable writeback throttling by default on legacy single queue devices
  112. config BLK_WBT_MQ
  113. bool "Multiqueue writeback throttling"
  114. default y
  115. depends on BLK_WBT
  116. ---help---
  117. Enable writeback throttling by default on multiqueue devices.
  118. Multiqueue currently doesn't have support for IO scheduling,
  119. enabling this option is recommended.
  120. menu "Partition Types"
  121. source "block/partitions/Kconfig"
  122. endmenu
  123. endif # BLOCK
  124. config BLOCK_COMPAT
  125. bool
  126. depends on BLOCK && COMPAT
  127. default y
  128. config BLK_MQ_PCI
  129. bool
  130. depends on BLOCK && PCI
  131. default y
  132. source block/Kconfig.iosched