- Timestamp:
- 12/15/2011 16:37:53 (5 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
confman.conf.5.in (modified) (1 diff)
-
confman.conf.in (modified) (1 diff)
-
confmanlib.sh.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confman.conf.5.in
r541 r542 114 114 .Xr confexport 8 run. This option has no effect when using repository-style 115 115 exports. 116 .It CONF_EXPORT_INCREMENTAL_LN 117 This option further optimizes 118 .Xr confexport 8 performance when using CONF_EXPORT_INCREMENTAL. When enabled, 119 .Xr confexport 8 will use 120 .Xr ln 1 to copy unchanged exports into the new export rather than 121 .Xr cp 1 . This option can only be used if temporary files are created 122 on the same filesystem partition as CONF_EXPORT_FILE. 116 123 .It CONF_FETCH_SSH_KEY 117 124 This is a private SSH keyfile for use with "sftp://" and "scp://" URIs above. -
trunk/confman.conf.in
r541 r542 81 81 CONF_EXPORT_STYLE="repository" 82 82 CONF_EXPORT_INCREMENTAL="false" 83 CONF_EXPORT_INCREMENTAL_LN="false" 83 84 EXPORT_REPO_PROTOCOL="" 84 85 EXPORT_REPO_HOSTNAME="" -
trunk/confmanlib.sh.in
r532 r542 437 437 # This module was not changed, so preserve its old export 438 438 echo "Preserving old export for module: ${module}" 439 cp -p "${CONF_EXPORT_FILE}/${module}.tgz" "${exportpath}" || return 1 439 if ${CONF_EXPORT_INCREMENTAL_LN}; then 440 ln "${CONF_EXPORT_FILE}/${module}.tgz" "${exportpath}" || return 1 441 else 442 cp -p "${CONF_EXPORT_FILE}/${module}.tgz" "${exportpath}" || return 1 443 fi 440 444 done 441 445 … … 491 495 # changed module, so preserve its old export 492 496 echo "Preserving old export for recipe: ${recipe}" 493 cp -p "${CONF_EXPORT_FILE}/${recipe}.tgz" "${exportpath}" || return 1 497 if ${CONF_EXPORT_INCREMENTAL_LN}; then 498 ln "${CONF_EXPORT_FILE}/${recipe}.tgz" "${exportpath}" || return 1 499 else 500 cp -p "${CONF_EXPORT_FILE}/${recipe}.tgz" "${exportpath}" || return 1 501 fi 494 502 done 495 503 conf_debug "updated_recipes: ${updated_recipes}"
Note: See TracChangeset
for help on using the changeset viewer.
