linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ubi: add possibility to skip CRC check for static UBI volumes
@ 2018-06-28  7:40 Quentin Schulz
  2018-06-28  7:40 ` [PATCH v3 1/2] ubi: provide a way to skip CRC checks Quentin Schulz
  2018-06-28  7:40 ` [PATCH v3 2/2] ubi: expose the volume CRC check skip flag Quentin Schulz
  0 siblings, 2 replies; 20+ messages in thread
From: Quentin Schulz @ 2018-06-28  7:40 UTC (permalink / raw)
  To: dedekind1, richard, dwmw2, computersforpeace, boris.brezillon,
	marek.vasut
  Cc: linux-mtd, linux-kernel, thomas.petazzoni, Quentin Schulz

Some users of static UBI volumes implement their own integrity check, thus
making the volume CRC check done at open time 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.

Patches for mtd-utils will be available as well.

Thanks,
Quentin

v3:
  - fix a few typos,

v2:
  - use volume flags instead of arguments on the kernel command line as
  suggested by Richard,

Quentin Schulz (2):
  ubi: provide a way to skip CRC checks
  ubi: expose the volume CRC check skip flag

 drivers/mtd/ubi/cdev.c      |  4 ++++
 drivers/mtd/ubi/kapi.c      |  2 +-
 drivers/mtd/ubi/ubi-media.h |  6 ++++++
 drivers/mtd/ubi/ubi.h       |  4 ++++
 drivers/mtd/ubi/vmt.c       | 12 ++++++++++++
 drivers/mtd/ubi/vtbl.c      |  3 +++
 include/uapi/mtd/ubi-user.h | 16 ++++++++++++++--
 7 files changed, 44 insertions(+), 3 deletions(-)

base-commit: 6dfa2c9bfb5f4b33861de2d8ea9c58086ce17215
-- 
git-series 0.9.1

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

end of thread, other threads:[~2018-07-02  9:37 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-28  7:40 [PATCH v3 0/2] ubi: add possibility to skip CRC check for static UBI volumes Quentin Schulz
2018-06-28  7:40 ` [PATCH v3 1/2] ubi: provide a way to skip CRC checks Quentin Schulz
2018-07-01 19:37   ` Richard Weinberger
2018-07-02  7:30   ` Artem Bityutskiy
2018-07-02  7:43     ` Richard Weinberger
2018-07-02  7:49       ` Artem Bityutskiy
2018-07-02  7:51     ` Boris Brezillon
2018-07-02  7:56       ` Richard Weinberger
2018-07-02  9:36       ` Artem Bityutskiy
2018-06-28  7:40 ` [PATCH v3 2/2] ubi: expose the volume CRC check skip flag Quentin Schulz
2018-07-01 19:35   ` Richard Weinberger
2018-07-01 20:33     ` Boris Brezillon
2018-07-01 20:50       ` Richard Weinberger
2018-07-02  6:44         ` Quentin Schulz
2018-07-02  6:52           ` Boris Brezillon
2018-07-02  6:54             ` Richard Weinberger
2018-07-01 20:54       ` Joe Perches
2018-07-01 21:01         ` Richard Weinberger
2018-07-01 21:39           ` Joe Perches
2018-07-02  6:46         ` Boris Brezillon

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).