linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] ubi-utils: add possibility to flag a static volume to skip CRC check when opening
@ 2018-06-28  7:43 Quentin Schulz
  2018-06-28  7:43 ` [PATCH v2 1/4] UBI: update ubi-user.h and ubi-media.h Quentin Schulz
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Quentin Schulz @ 2018-06-28  7:43 UTC (permalink / raw)
  To: dedekind1, richard, dwmw2, computersforpeace, boris.brezillon,
	marek.vasut
  Cc: linux-mtd, thomas.petazzoni, david.oberhollenzer, Quentin Schulz

Some users of static UBI volumes implement their own integrity check,
thus making the volume CRC check done at open time by the kernel
useless. For instance, this is the case when one use the ubiblock +
dm-verity + squashfs combination, where dm-verity already checks
integrity of the block device but this time at the block granularity
instead of verifying the whole volume.

Skipping this test drastically improves the boot-time.

This patch adds the CRC check skip flagging of a volume to ubinize and ubimkvol.

This patch series requires the following patches in the Linux kernel to work:
https://lkml.org/lkml/2018/6/28/138 ("ubi: add possibility to skip CRC check for
static UBI volumes")

Thanks,
Quentin

v2:
  - fix a few typos,
  - split big patch in several patches,
  - add comment in ubinize for parsing vol_flags (very simple implementation
  based on autoresize and skip-check flags (the only supported flags to date)
  to be incompatible),

Quentin Schulz (4):
  UBI: update ubi-user.h and ubi-media.h
  libubi: add volume flags to ubi_mkvol_request
  ubi-utils: ubimkvol: add support for skipping CRC check of a static
    volume when opening
  ubi-utils: ubinize: add support for skipping CRC check of a static
    volume when opening

 include/libubi.h        |  2 ++
 include/mtd/ubi-media.h |  6 ++++++
 include/mtd/ubi-user.h  | 16 ++++++++++++++--
 lib/libubi.c            |  1 +
 ubi-utils/ubimkvol.c    | 19 ++++++++++++++++---
 ubi-utils/ubinize.c     | 16 ++++++++++++++++
 6 files changed, 55 insertions(+), 5 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-28 11:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-28  7:43 [PATCH v2 0/4] ubi-utils: add possibility to flag a static volume to skip CRC check when opening Quentin Schulz
2018-06-28  7:43 ` [PATCH v2 1/4] UBI: update ubi-user.h and ubi-media.h Quentin Schulz
2018-06-28  7:50   ` Boris Brezillon
2018-06-28  7:43 ` [PATCH v2 2/4] libubi: add volume flags to ubi_mkvol_request Quentin Schulz
2018-06-28  7:50   ` Boris Brezillon
2018-06-28  7:43 ` [PATCH v2 3/4] ubi-utils: ubimkvol: add support for skipping CRC check of a static volume when opening Quentin Schulz
2018-06-28  7:50   ` Boris Brezillon
2018-06-28  7:43 ` [PATCH v2 4/4] ubi-utils: ubinize: " Quentin Schulz
2018-06-28  7:50   ` Boris Brezillon
2018-06-28 11:48 ` [PATCH v2 0/4] ubi-utils: add possibility to flag a static volume to skip CRC check " David Oberhollenzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).