#
#	creater xulongwen 20141219
# 	HIK-BSP drivers Kconfig
#

menuconfig HIKBASE_MD
	bool "devices driver support (RAID and LVM)"
	depends on MD
	help
	  Support remap and bitmap.

	  
if HIKBASE_MD

config HIKBASE_MD_SYNC_FAST
    bool "Hik-vision support fast sync for raid"
    default n
       ---help---
       It used for raid synchronization. 
config HIKBASE_RAID5_REDUCE_SCHED
    bool "Hik-vision reduce schedule times for raid."
       ---help---
       It used for many pthreads.
       
config HIKBASE_BAD_SECTOR_REMAP_ALIGN_READ
    bool "Hik-vision support remap align read for raid."
       ---help---
       Hik-vision support remap align read for raid. 

config HIKBASE_SUPPORT_BAD_SECTOR_REMAP
    bool "Hik-vision support bad sector remap for raid"
    select HIKBASE_RAID5_REDUCE_SCHED
    select HIKBASE_BAD_SECTOR_REMAP_ALIGN_READ
    ---help---
    The bad sector will be remapped . 

config HIKBASE_BAD_WRITE_TEST
    bool "testing raid badly writing when enabled HIK_SUPPORT_BAD_SECTOR_REMAP"
    default n
    depends on HIKBASE_SUPPORT_BAD_SECTOR_REMAP
        ---help---
          testing raid badly writing when enabled HIK_SUPPORT_BAD_SECTOR_REMAP .
          If unsure, say N.
          
config HIKBASE_BAD_SECTOR_FAST_HANDLE
    bool "Hik-vision Fast return when handing bad sectors."
    default n
    ---help---
    Say Y here if you want to writing and reading return fastly when access to bad sectors.

config HIKBASE_BITMAP_SET
    bool "Hik-vision support bitmap of md setting and init fastly."
    default n
    ---help---
    Say Y here if you need to init raid fastly.
	
config HIKBASE_SAFEMODE_FLUSH
    bool "Reduce flush command of safemode."
    default n
    ---help---
    Say Y here if you need to reduce flush command of safemode.

config HIKBASE_SOFTRAID_HOTREPLACE
    bool "SoftRaid hotreplace"
    default n
    help
      If you want enable softraid hotreplace, please y, otherwise say n.
config HIKBASE_SOFTRAID_EFFICIENT_RECOVERY
    bool "SoftRaid efficient recovery"
    default n
    help
      If you want enable softraid efficient recovery, please y, otherwise say n.
config HIKBASE_SOFTRAID_USER_COMPAT
    bool "SoftRaid User Compat"
    default n
    help
      If you want to make compatible with user mdadm tools, please y, otherwise say n.
      
config HIKBASE_MD_SLEEP
    bool "Md sleep function"
    default n
    help
      1. get md last access time.
      2. get disk remap area total sectors and current used sectors.
      If you want to enable this function, please say y.
	
endif # HIKBASE_MD
