From: Lukas Funke <lukas.funke-oss@weidmueller.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>,
Richard Purdie <richard.purdie@linuxfoundation.org>,
Lukas Funke <lukas.funke@weidmueller.com>
Subject: [PATCH v3 0/2] wic: extend empty plugin with options to write zeros to partiton
Date: Tue, 28 Nov 2023 14:52:30 +0100 [thread overview]
Message-ID: <cover.1701176186.git.lukas.funke@weidmueller.com> (raw)
From: Lukas Funke <lukas.funke@weidmueller.com>
Adds features to explicitly write zeros to the start of the
partition. This is useful to overwrite old content like
filesystem signatures which may be re-recognized otherwise.
The new features can be enabled with
'--soucreparams="[fill|size=<N>[S|s|K|k|M|G]][,][bs=<N>[S|s|K|k|M|G]]"'
Conflicting or missing options throw errors.
The features are:
- fill
Fill the entire partition with zeros. Requires '--fixed-size' option
to be set.
- size=<N>[S|s|K|k|M|G]
Set the first N bytes of the partition to zero. Default unit is 'K'.
- bs=<N>[S|s|K|k|M|G]
Write at most N bytes at a time during source file creation.
Defaults to '1M'. Default unit is 'K'.
Changes in v3:
- Add testcase
- Fix interpretation of --fixed-size parameter
Changed in v2:
- Added SoB
---
Lukas Funke (1):
selftest: wic: add test for zerorize option of empty plugin
Malte Schmidt (1):
wic: extend empty plugin with options to write zeros to partiton
meta/lib/oeqa/selftest/cases/wic.py | 36 ++++++++++++++++
scripts/lib/wic/plugins/source/empty.py | 57 ++++++++++++++++++++++++-
2 files changed, 92 insertions(+), 1 deletion(-)
--
2.30.2
next reply other threads:[~2023-11-28 13:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-28 13:52 Lukas Funke [this message]
2023-11-28 13:52 ` [PATCH v3 1/2] wic: extend empty plugin with options to write zeros to partiton Lukas Funke
2023-11-28 13:52 ` [PATCH v3 2/2] selftest: wic: add test for zerorize option of empty plugin Lukas Funke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1701176186.git.lukas.funke@weidmueller.com \
--to=lukas.funke-oss@weidmueller.com \
--cc=alexandre.belloni@bootlin.com \
--cc=lukas.funke@weidmueller.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox