From patchwork Mon Apr 12 08:36:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PATCH 6/7] ubi: logging feature for ubi Date: Sun, 11 Apr 2010 22:36:28 -0000 From: Brijesh Singh X-Patchwork-Id: 49955 Message-Id: To: Artem.Bityutskiy@nokia.com Cc: linux-mtd@lists.infradead.org, rohitvdongre@gmail.com, David Woodhouse , rohit.dongre@samsung.com, brijesh.s.singh@gmail.com Note: kconfig for logging feature Signed-off-by: Rohit Dongre --- --- ubi_old/drivers/mtd/ubi/Kconfig 2010-04-09 21:54:13.955581334 +0530 +++ ubi_new/drivers/mtd/ubi/Kconfig 2010-04-09 21:54:02.635580892 +0530 @@ -57,6 +57,26 @@ volume. This is handy to make MTD-oriented software (like JFFS2) work on top of UBI. Do not enable this unless you use legacy software. +menu "UBI with Log (UBIL)" +config MTD_UBI_LOGGED + bool "UBI with logging (UBIL)" + default n + depends on MTD_UBI + help + This option enables logging in UBI. This is in development stage. + UBI log is maintained on device to reduce attach time of UBI. + It includeds super block, commit, eba log sub-modules. + +config MTD_UBIL_COMPR + bool "UBIL Meta-data compression in Log" + default n + depends on MTD_UBI_LOGGED + select CRYPTO + select CRYPTO_LZO + help + This option enables compression of meta-data in UBIL. + +endmenu source "drivers/mtd/ubi/Kconfig.debug" endmenu --- ubi_old/drivers/mtd/ubi/Kconfig.debug 2010-04-09 21:54:13.955581334 +0530 +++ ubi_new/drivers/mtd/ubi/Kconfig.debug 2010-04-09 21:54:02.635580892 +0530 @@ -91,4 +91,31 @@ help This option enables debugging messages from the UBI input/output unit. +config MTD_UBI_DEBUG_MSG_SB + bool "UBI with log sb messages" + default n + depends on MTD_UBI_DEBUG + depends on MTD_UBI_LOGGED + help + This option enables debugging messages from sn modules of the UBI + with log. + +config MTD_UBI_DEBUG_MSG_CMT + bool "UBI with log commit messages" + default n + depends on MTD_UBI_DEBUG + depends on MTD_UBI_LOGGED + help + This option enables debugging messages from commit modules of the UBI + with log. + +config MTD_UBI_DEBUG_MSG_EL + bool "UBI with log el messages" + default n + depends on MTD_UBI_DEBUG + depends on MTD_UBI_LOGGED + help + This option enables debugging messages from el modules of the UBI + with log. + endmenu # UBI debugging messages --- ubi_old/drivers/mtd/ubi/Makefile 2010-04-09 21:54:13.955581334 +0530 +++ ubi_new/drivers/mtd/ubi/Makefile 2010-04-09 21:54:02.645580870 +0530 @@ -1,7 +1,7 @@ obj-$(CONFIG_MTD_UBI) += ubi.o ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o scan.o -ubi-y += misc.o +ubi-y += misc.o sb.o el.o commit.o ubi-$(CONFIG_MTD_UBI_DEBUG) += debug.o obj-$(CONFIG_MTD_UBI_GLUEBI) += gluebi.o