Dear List,
Can anyone help to explain definitions of variable "append_mode"?

I have found this variable is changed in many places, and quite
confused.


option.c #line549~550

>   {"append-verify",    0,  POPT_ARG_VAL,    &append_mode, 2, 0, 0 },
>   {"no-append",        0,  POPT_ARG_VAL,    &append_mode, 0, 0, 0 },

#line1183~1188

> case OPT_APPEND:
> if (am_server)
> append_mode++;
> else
> append_mode = 1;
> break;

batch.c #line153~156

> if (tweaked_append)
> append_mode = 1;
> else if (tweaked_append_verify)
> append_mode = 2;

compat.c #line191~192

> if (append_mode == 1)
> append_mode = 2;

generate.c #line2102,2127

> append_mode = -append_mode;


receive.c #line503,513

> append_mode = -append_mode;

send.c #line248,254

> append_mode = -append_mode;
-- 
Daniel

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to