Changeset 93e558b


Ignore:
Timestamp:
12/20/13 09:17:46 (19 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, enter/10, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
2f7f83b0, 793a9f6
Parents:
a895853
Message:

When adding files to the hash-dir, lets be sure to check if the
PBI is running and cancel if so. Don't want to remove / move a file
that it may need

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbi-manager

    r67122be r93e558b  
    33523352        fi 
    33533353         
     3354        inUseDir="/usr/pbi/.mounts/`basename $1`/virtbase/dev" 
     3355 
    33543356        # Read the hashfile, and start making links to identical files 
    33553357        while read hl 
    33563358        do 
     3359                # Is this PBI running? 
     3360                if [ -d "$inUseDir" ] ; then 
     3361                        echo "hASHBUSY - Canceled" 
     3362                        return 
     3363                fi 
     3364 
    33573365                file="`echo $hl | sed 's/:::.*$//g'`" 
    33583366 
     
    49214929                                echo "Finished adding ${_hpbipath} to hash-dir: `date`" >> ${_pbid_log} 
    49224930                                 
    4923                                 # Now remove the trigger file 
    4924                                 rm ${PBI_DBHASHQUEUEDIR}/${_hpbi} 
     4931 
     4932                                inUseDir="/usr/pbi/.mounts/`basename $_hpbipath`/virtbase/dev" 
     4933                                # If the PBI isn't running, we can remove trigger 
     4934                                if [ ! -d "$inUseDir" ] ; then 
     4935                                        # Now remove the trigger file 
     4936                                        rm ${PBI_DBHASHQUEUEDIR}/${_hpbi} 
     4937                                fi 
    49254938 
    49264939                        done 
Note: See TracChangeset for help on using the changeset viewer.