From patchwork Mon Apr 12 08:36:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 49955 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DF200B7D1A for ; Mon, 12 Apr 2010 18:41:49 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O1FB3-0005jd-5X; Mon, 12 Apr 2010 08:39:29 +0000 Received: from mail-pv0-f177.google.com ([74.125.83.177]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O1F8C-0005HU-G1 for linux-mtd@lists.infradead.org; Mon, 12 Apr 2010 08:36:33 +0000 Received: by pvc30 with SMTP id 30so2685200pvc.36 for ; Mon, 12 Apr 2010 01:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:cc:content-type; bh=CIrHOf/ETG7AM6RbGzmmo15hTUwJR+0kyMli+c2AX9c=; b=kNDMfA6SlB2T+HQLDHh+/Bkju0U1BeicwkeZ1ZdlS7cWAsLhMHfUGEbeMzP6EpReDC UYNsy+KE9KxoF1I2mVkFmYtcoUumMbrjW59gsr3Qw0iA39nzx/mXM4oBRH17JO2IUX7o E4AH2V1lcTstyvwNRbc6+xz9572gLBGiV7W08= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=j4+8fjV4Kklv6AvN8TyIX1M7Bxg82P87NVw0G6AAitf2W+EBkM8ZSZWUpiznchwq/b aXkO8Qcwat1XCVS+vDuwLifnTXYjPcuYy3x599bpDOatogEu+ShMGMQtmx8LBQeWt955 NE5JX9nUt+rUkr5Q8JiFUjAMyuNvjliyJuSzw= MIME-Version: 1.0 Received: by 10.143.9.13 with HTTP; Mon, 12 Apr 2010 01:36:28 -0700 (PDT) Date: Mon, 12 Apr 2010 14:06:28 +0530 Received: by 10.143.20.41 with SMTP id x41mr1264185wfi.216.1271061388730; Mon, 12 Apr 2010 01:36:28 -0700 (PDT) Message-ID: Subject: PATCH 6/7] ubi: logging feature for ubi From: Brijesh Singh To: Artem.Bityutskiy@nokia.com X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100412_043632_684424_FA45AF6B X-CRM114-Status: UNSURE ( 5.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (brijesh.s.singh[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: linux-mtd@lists.infradead.org, rohitvdongre@gmail.com, David Woodhouse , rohit.dongre@samsung.com, brijesh.s.singh@gmail.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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