<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3444</bug_id>
          
          <creation_ts>2012-11-15 18:21:01 +0000</creation_ts>
          <short_desc>Use sparse files for images</short_desc>
          <delta_ts>2016-02-11 11:45:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>deployment</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27489</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-11-15 18:21:01 +0000</bug_when>
    <thetext>Many of our images have a lot of empty space in them. There are projects around that take advantage of sparse files and filemaps to create a better image writer which only writes the necessary data to the target device. This should result in smaller images and faster device write times (and longer flash life as well).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34687</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-07-19 01:09:56 +0000</bug_when>
    <thetext>Tom is going to try and find the MeeGo solution reference...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45850</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-09-25 15:25:54 +0000</bug_when>
    <thetext>So the bare filesystem images are sparse already:

$ du -h core-image-sato-nuc-20140916184231.rootfs.ext3
444M	core-image-sato-nuc-20140916184231.rootfs.ext3
$ du -h --apparent-size core-image-sato-nuc-20140916184231.rootfs.ext3
984M	core-image-sato-nuc-20140916184231.rootfs.ext3

But when that gets wrapped up into a hddimg most of the sparseness disappears:

$ du -h core-image-sato-nuc-20140916184231.hddimg
1000M	core-image-sato-nuc-20140916184231.hddimg
$ du -h --apparent-size core-image-sato-nuc-20140916184231.hddimg
1014M	core-image-sato-nuc-20140916184231.hddimg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58872</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-11 11:45:47 +0000</bug_when>
    <thetext>*Most*, this is due to wrapping an ext in a fat in a...  and it&apos;s filesystems all the way down.

There&apos;s a problem with wic in that it *doesn&apos;t* do sparse, but there&apos;s a patch for that already.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>