<?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>11163</bug_id>
          
          <creation_ts>2017-03-15 14:51:01 +0000</creation_ts>
          <short_desc>Error &quot;Rootfs is too small for BTRFS&quot; when building image with  IMAGE_FSTYPES=btrfs</short_desc>
          <delta_ts>2017-04-11 21:05:58 +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>devtools / tool chain</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          <blocked>10745</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="oscar lopez arandas">oscarx.lopez.arandas</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71304</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-03-15 14:51:01 +0000</bug_when>
    <thetext>Bitbake fails when trying to compile adding all the IMAGE_FSTYPES, Rootfs is too small for BTRFS (Rootfs Actual Size: 9740, BTRFS Minimum Size: 16384) 

Steps to reproduce
1. Edit conf/local.conf file, adding the following variable.
IMAGE_FSTYPES += &quot;btrfs&quot;

2. Compile a minimal image
$ bitbake core-image-minimal

Expected Result:
Should compile successfully

Actual Result:

The following error message is displayed:

ERROR: core-image-minimal-1.0-r0 do_image_btrfs: Rootfs is too small for BTRFS (Rootfs Actual Size: 9740, BTRFS Minimum Size: 16384)
ERROR: core-image-minimal-1.0-r0 do_image_btrfs: Function failed: do_image_btrfs (log file is located at /home/jgperezc/sandbox/poky-bugs/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_btrfs.28944)
ERROR: Logfile of failure stored in: /home/jgperezc/sandbox/poky-bugs/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_btrfs.28944
ERROR: Task (/home/jgperezc/sandbox/poky-bugs/meta/recipes-core/images/core-image-minimal.bb:do_image_btrfs) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71315</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-15 18:59:07 +0000</bug_when>
    <thetext>This error means that core-image-minimal rootfs is too small for BTRFS. Can you try if it works with bigger images like core-image-sato? 

Can you explain why do you need to create btrfs images for core-image-minimal? Did it work before?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71325</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-03-15 22:53:26 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This error means that core-image-minimal rootfs is too small for BTRFS. Can
&gt; you try if it works with bigger images like core-image-sato? 
Worked correctly on core-image-sato
&gt; 
&gt; Can you explain why do you need to create btrfs images for
&gt; core-image-minimal? Did it work before?
This is part of a new test cased creation defined on Bug 10745, There is no documentation about not being supported for minimal. 

I think that if this is not supported for minimal should be advised since the beginning because currently many tasks are executed an completed successfully and the error is retrieved at the end.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71345</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-16 10:04:31 +0000</bug_when>
    <thetext>The size of rootfs directory is known when rootfs directory is ready, i.e. when packages are built and installed into it. We can&apos;t know it at the beginning, I&apos;m afraid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71385</commentid>
    <comment_count>4</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-17 11:50:22 +0000</bug_when>
    <thetext>Increased filesystem size for small rootfs directories:
http://lists.openembedded.org/pipermail/openembedded-core/2017-March/134276.html

This should make it possible to create btrfs image for core-image-minimal.

Please, review&amp;test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71389</commentid>
    <comment_count>5</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-03-17 13:53:09 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Increased filesystem size for small rootfs directories:
&gt; http://lists.openembedded.org/pipermail/openembedded-core/2017-March/134276.
&gt; html
&gt; 
&gt; This should make it possible to create btrfs image for core-image-minimal.
&gt; 
&gt; Please, review&amp;test.

Tested with the patch sent and is working correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71573</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-22 13:49:53 +0000</bug_when>
    <thetext>The fix has been merged to master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72347</commentid>
    <comment_count>7</comment_count>
      <attachid>3714</attachid>
    <who name="oscar lopez arandas">oscarx.lopez.arandas</who>
    <bug_when>2017-04-11 21:05:26 +0000</bug_when>
    <thetext>Created attachment 3714
log.do_image_btrfs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72348</commentid>
    <comment_count>8</comment_count>
    <who name="oscar lopez arandas">oscarx.lopez.arandas</who>
    <bug_when>2017-04-11 21:05:58 +0000</bug_when>
    <thetext> &lt;bitbake&gt; : &lt;the IMAGE_FSTYPES&gt; &lt;Rootfs is too small for BTRFS&gt;
 core-image-minimal-initramfs: core-image-minimal-1.0-r0 do_image_btrfs: Rootfs is too small for BTRFS.

Build Configuration:
BB_VERSION        = &quot;1.33.3&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;ubuntu-16.04&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;intel-corei7-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.2+snapshot-20170411&quot;
TUNE_FEATURES     = &quot;m64 corei7&quot;

Steps to reproduce
1. Edit conf/local.conf file, adding the following variable.
IMAGE_FSTYPES += &quot;btrfs&quot;

2. Compile a minimal image
$ bitbake core-image-minimal

commint
Expected Result:
Should compile successfully

Actual Result:
all succeeded.

commit: eff56e4f0d59b1d965a68e4f009b7f07717b7edd

log attachment.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3714</attachid>
            <date>2017-04-11 21:05:26 +0000</date>
            <delta_ts>2017-04-11 21:05:26 +0000</delta_ts>
            <desc>log.do_image_btrfs</desc>
            <filename>log.do_image_btrfs.7300</filename>
            <type>application/octet-stream</type>
            <size>1481</size>
            <attacher name="oscar lopez arandas">oscarx.lopez.arandas</attacher>
            
              <data encoding="base64">REVCVUc6IEV4ZWN1dGluZyBweXRob24gZnVuY3Rpb24gc2V0X2ltYWdlX3NpemUKREVCVUc6IFB5
dGhvbiBmdW5jdGlvbiBzZXRfaW1hZ2Vfc2l6ZSBmaW5pc2hlZApERUJVRzogRXhlY3V0aW5nIHNo
ZWxsIGZ1bmN0aW9uIGRvX2ltYWdlX2J0cmZzCldBUk5JTkc6IFJvb3RmcyBzaXplIGlzIHRvbyBz
bWFsbCBmb3IgQlRSRlMuIE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1hZ2UtY29tcGxldGUvY29yZS1pbWFn
ZS1taW5pbWFsLWludGVsLWNvcmVpNy02NC0yMDE3MDQxMTE4MjUwOC5yb290ZnMuYnRyZnMKCkRF
QlVHOiBTaGVsbCBmdW5jdGlvbiBkb19pbWFnZV9idHJmcyBmaW5pc2hlZApERUJVRzogRXhlY3V0
aW5nIHB5dGhvbiBmdW5jdGlvbiBjcmVhdGVfc3ltbGlua3MKTk9URTogQ3JlYXRpbmcgc3ltbGlu
azogL2hvbWUvb3NjYXIvc2F0by9idWlsZC90bXAvd29yay9pbnRlbF9jb3JlaTdfNjQtcG9reS1s
aW51eC9jb3JlLWltYWdlLW1pbmltYWwvMS4wLXIwL2RlcGxveS1jb3JlLWltYWdlLW1pbmltYWwt
aW1hZ2UtY29tcGxldGUvY29yZS1pbWFnZS1taW5pbWFsLWludGVsLWNvcmVpNy02NC5idHJmcyAt
PiBjb3JlLWltYWdlLW1pbmltYWwtaW50ZWwtY29yZWk3LTY0LTIwMTcwNDExMTgyNTA4LnJvb3Rm
cy5idHJmcwpERUJVRzogUHl0aG9uIGZ1bmN0aW9uIGNyZWF0ZV9zeW1saW5rcyBmaW5pc2hlZAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>