NAME

App::FileSync::Constants - shared constants for App::FileSync

SYNOPSIS

use App::FileSync::Constants qw($EXIT_LOCKED $ROLE_REPLICA);

exit $EXIT_LOCKED if $locked;

DESCRIPTION

Read-only values (Readonly) shared by the client, server and admin tools: exit codes, the protocol version, reserved file names, policy defaults and size limits. Import them by name, or all of them with :all.

EXIT CODES

$EXIT_OK        0  success
$EXIT_FATAL     1  the run failed
$EXIT_LOCKED    2  another run holds the lock (temporary, not a failure)
$EXIT_WARNINGS  3  completed, with warnings or conflict copies
$EXIT_DRIFT     4  verify found the tree differs from its record

LIMITATIONS

Readonly values cannot be changed with local. Values the tests need to shrink ($App::FileSync::Client::LOG_LIMIT, the chunk sizes and the $App::FileSync::Delta thresholds) are therefore ordinary package variables in their own modules.

AUTHOR

Nigel Horne, <njh at nigelhorne.com>

LICENCE AND COPYRIGHT

Copyright 2026 Nigel Horne.

Usage is subject to the GPL2 licence terms. If you use it, please let me know.