From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: Joshua Lock <joshua.lock@collabora.co.uk>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] wic/utils/partitionedfs.py: assemble .wic images as sparse files
Date: Thu, 17 Dec 2015 14:21:21 +0200 [thread overview]
Message-ID: <20151217122121.GB30559@linux.intel.com> (raw)
In-Reply-To: <1450283593-26774-1-git-send-email-joshua.lock@collabora.co.uk>
Hi Joshua,
Thank you for the patch! I like the change. It's a first step towards
supporting bmaptool, which is in my TODO list.
Would you be willing to write or modify wic test case to test this?
On Wed, Dec 16, 2015 at 04:33:13PM +0000, Joshua Lock wrote:
> The individual partitions created by wic are sparse but without
> this change the assembled image is written as one (potentially
> very) large file.
>
> Preserve sparseness in the assembled image by passing the sparse
> conversion symbol.
>
> Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
> ---
> scripts/lib/wic/utils/partitionedfs.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
> index 5a103bb..3e2b420 100644
> --- a/scripts/lib/wic/utils/partitionedfs.py
> +++ b/scripts/lib/wic/utils/partitionedfs.py
> @@ -340,7 +340,7 @@ class Image(object):
> source = part['source_file']
> if source:
> # install source_file contents into a partition
> - cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc" % \
> + cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc,sparse" % \
> (source, image_file, self.sector_size,
> part['start'], part['size'])
> exec_cmd(cmd)
> --
> 2.5.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
--
Regards,
Ed
next prev parent reply other threads:[~2015-12-17 12:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 16:33 [PATCH] wic/utils/partitionedfs.py: assemble .wic images as sparse files Joshua Lock
2015-12-17 12:21 ` Ed Bartosh [this message]
2015-12-17 13:19 ` Joshua Lock
2015-12-17 13:23 ` Burton, Ross
2015-12-17 13:53 ` Ed Bartosh
2015-12-17 16:09 ` [PATCH] oeqa/selftest/wic: add test case for sparse images Joshua Lock
2015-12-17 16:21 ` Burton, Ross
2015-12-17 16:52 ` Joshua Lock
2015-12-17 19:43 ` [[PATCH v2] " Joshua Lock
2015-12-30 9:53 ` Ed Bartosh
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=20151217122121.GB30559@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=joshua.lock@collabora.co.uk \
--cc=openembedded-core@lists.openembedded.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