<?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>8978</bug_id>
          
          <creation_ts>2016-01-21 22:40:46 +0000</creation_ts>
          <short_desc>devtool: deploy-target: preserve old files so we can restore them later</short_desc>
          <delta_ts>2016-02-21 19:46:42 +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.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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</target_milestone>
          <dependson>7908</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.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>58099</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-01-21 22:40:46 +0000</bug_when>
    <thetext>When running devtool deploy-target we overwrite any files that were already present on the target. If the target machine isn&apos;t running a throw-away image that could be problematic if you were working on some core component of the image. If space allows, we should preserve the files that would have been overwritten and restore them when undeploying. This will need to be done after we move the deployed file list to the target (covered by bug 7908).

As part of this we will also need to add a free space check; at the moment we don&apos;t do this. Unfortunately that size check will probably need to be aware that the files being deployed could be across multiple mounted filesystems with separate space pools. 

There should also be an option to skip preserving in case of systems with limited free space where preservation isn&apos;t important.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59314</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-02-21 19:46:42 +0000</bug_when>
    <thetext>Now implemented in master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a8e0e5ecd329b5a9f3019854ee6faa1cff62c69e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>