Changeset 23258
- Timestamp:
- Mar 10, 2009, 3:21:06 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksreplace.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksreplace.c
r21156 r23258 4 4 static bool readAndCopyToOutput(streakFiles *sf, bool restoreImageCube); 5 5 static void writeImages(streakFiles *sf, bool exciseImageCube); 6 static bool replicateOutputs(streakFiles *sfiles);7 6 static bool readAndCopyToOutput(streakFiles *sf, bool restoreImageCube); 8 7 … … 92 91 closeImages(sfiles); 93 92 94 // NOTE: from here on we can't just quit if something goes wrong.95 // especially if we're working at the raw stage96 97 93 if (!replicateOutputs(sfiles)) { 98 94 psError(PS_ERR_UNKNOWN, false, "failed to replicate output files"); … … 429 425 } 430 426 } 431 432 static bool replicateOutputs(streakFiles *sfiles)433 {434 bool status = false;435 436 // XXX: TODO: need a nebGetXatrr function, but there isn't one437 // another option would be to take the number of copies to be438 // created as an option. That way the system could decide439 // whether to replicate anything other than raw Image files440 void *xattr = NULL;441 442 if (!replicate(sfiles->outImage, xattr)) {443 psError(PM_ERR_SYS, false, "failed to replicate outImage.");444 return false;445 }446 447 #ifdef notyet448 // XXX: don't replicate mask and weight images until we can look up449 // the input's xattr. There may be a perl program that can getXattr450 if (sfiles->outMask) {451 // get xattr from input to see if we need to replicate452 if (!replicate(sfiles->outMask, xattr)) {453 psError(PM_ERR_SYS, false, "failed to replicate outImage.");454 return false;455 }456 }457 if (sfiles->outWeight) {458 // get xattr from input to see if we need to replicate459 if (!replicate(sfiles->outWeight, xattr)) {460 psError(PM_ERR_SYS, false, "failed to replicate outImage.");461 return false;462 }463 }464 #endif465 466 // replicate the recovery images (if in nebulous)467 // perhaps whether we do that or not should be configurable.468 // Sounds like we need a recipe469 470 return true;471 }472
Note:
See TracChangeset
for help on using the changeset viewer.
