Skip to content

ubi-utils: add possibility to flag a static volume to skip CRC check when opening

Quentin Schulz linux-mtd 2 versions – Applied

Status from this message: Applied to mtd-utils.git master.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesApplied
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

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

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4UBI: update ubi-user.h and ubi-media.hinclude/mtd/ubi-media.h include/mtd/ubi-user.h+20 -21 reply
2/4libubi: add volume flags to ubi_mkvol_requestinclude/libubi.h lib/libubi.c+3 -01 reply
3/4ubi-utils: ubimkvol: add support for skipping CRC check of a static volume when openingubi-utils/ubimkvol.c+16 -31 reply
4/4ubi-utils: ubinize: add support for skipping CRC check of a static volume when openingubi-utils/ubinize.c+16 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchBoris Brezillon
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] ubi-utils: add possibility to flag a static volume to skip CRC check when opening

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(-)
Signature · 1 line
2.14.1