Changeset 31882
- Timestamp:
- Jul 14, 2011, 3:31:56 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/diskbalance.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/diskbalance.pro
r31880 r31882 85 85 86 86 macro set.balance.target 87 $BALANCE_TARGET = $1 87 if ($0 != 2) 88 echo "USAGE: set.balance.target (DESTINATION|SOURCE)" 89 break 90 end 91 $BALANCE_TARGET = $1 88 92 end 89 93 … … 100 104 $BALANCE_LIMIT = 500 101 105 $BALANCE_OFFSET = 0 102 $BALANCE_TARGET = SOURCE106 $BALANCE_TARGET = "SOURCE" 103 107 # Select Nebulous objects which should be shuffled 104 108 task balance.load … … 164 168 165 169 # locked list 166 :task.exit default170 task.exit default 167 171 showcommand failure 168 172 end … … 205 209 book getword balancePending $pageName destination_host -var DEST_HOST 206 210 # Fix this with multihost restriction when possible. 207 if ("$ target" == "DESTINATION")211 if ("$BALANCE_TARGET" == "DESTINATION") 208 212 set.host.for.balance $DEST_HOST 209 213 else 210 214 set.host.for.balance $SOURCE_HOST 211 215 end 212 216 213 217 214 218 stdout NULL … … 229 233 230 234 # default exit status 231 task.exit default235 task.exit default 232 236 process_exit balancePending $options:0 $JOB_STATUS 233 237 end
Note:
See TracChangeset
for help on using the changeset viewer.
