<?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>9459</bug_id>
          
          <creation_ts>2016-04-13 20:14:38 +0000</creation_ts>
          <short_desc>We should add IGNORE as an option for the diskmonitor so that a user can override what the system wants to do</short_desc>
          <delta_ts>2016-04-14 16:28:40 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.2</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.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="brian avery">brian.avery</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>61175</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-04-13 20:14:38 +0000</bug_when>
    <thetext>We currently only allow &quot;ABORT&quot;, &quot;STOPTASKS&quot;, &quot;WARN&quot; for actions.  This means that even if I know that my mount point is ok, I can&apos;t tell the system to leave it alone. We should either allow IGNORE for the action or add a Variable to disable the monitor altogether.

To add IGNORE, all we need to do is :
change bitbake/lib/bb/monitordisk.py - 
   if action not in (&quot;ABORT&quot;, &quot;STOPTASKS&quot;, &quot;WARN&quot;):
to - 
   if action not in (&quot;ABORT&quot;, &quot;STOPTASKS&quot;, &quot;WARN&quot;, &quot;IGNORE&quot;):

Nicely, all of the action dispatch code checks for keyword matches, but we should probably add an:
   elif action == &quot;IGNORE&quot;:
       pass
just to be clear.      

-----
Why this mattered to me:
I&apos;m running on a Docker container inside a VM on MacOSX.  My sstate is in a  bind (effectively) mounted OSX dir which the container can see. bitbake is unhappy with the inode number; but because of the odd driver being used, that number does not reflect reality.
With the explosion of filesystems, I&apos;d prefer to have an override option in case the user does know better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61199</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-04-14 12:43:59 +0000</bug_when>
    <thetext>Why wouldn&apos;t you just not list this in BB_DISKMON_DIRS at all?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61227</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-04-14 15:08:28 +0000</bug_when>
    <thetext>See above question...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61240</commentid>
    <comment_count>3</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-04-14 16:27:42 +0000</bug_when>
    <thetext>because I didn&apos;t see that I could.  My bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61241</commentid>
    <comment_count>4</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-04-14 16:28:40 +0000</bug_when>
    <thetext>Didn&apos;t realize how I should have overridden this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>