line |
true |
false |
branch |
89
|
0 |
0 |
if $$rs{'rsyncArgs'}[$i] eq '--devices' |
113
|
0 |
0 |
unless $p->getoptions('exclude=s', sub {
optExclude($rs, @_);
}
, 'exclude-from=s', sub {
optExclude($rs, @_);
}
, 'include=s', sub {
optExclude($rs, @_);
}
, 'include-from=s', sub {
optExclude($rs, @_);
}
, 'cvs-exclude|C', sub {
optExclude($rs, @_);
}
) |
125
|
0 |
0 |
unless $p->getoptions($$rs{'rsyncOpts'}, 'block-size=i', 'devices|D', 'from0|0', 'group|g', 'hard-links|H', 'ignore-times|I', 'links|l', 'numeric-ids', 'owner|o', 'perms|p', 'protocol=i', 'recursive|r', 'relative|R', 'timeout', 'verbose|v+') |
144
|
0 |
0 |
if defined $$rs{'rsyncOpts'}{'protocol'} |
147
|
0 |
0 |
if (not defined $$rs{'fio'}) { } |
163
|
0 |
0 |
if ($$rs{'fio_version'} >= 2) { } |
170
|
0 |
0 |
if $$rs{'protocol_version'} > 26 |
229
|
0 |
0 |
if $$rs{'timeout'} |
230
|
0 |
0 |
unless socket FH, 2, 1, $proto |
232
|
0 |
0 |
unless connect FH, $paddr |
236
|
0 |
0 |
if $$rs{'timeout'} |
237
|
0 |
0 |
unless ($line =~ /\@RSYNCD:\s*(\d+)/) |
241
|
0 |
0 |
if ($$rs{'remote_protocol'} < 20 or $$rs{'remote_protocol'} > 40) |
244
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
246
|
0 |
0 |
if $$rs{'protocol_version'} > $$rs{'remote_protocol'} |
248
|
0 |
0 |
if $$rs{'fio_version'} >= 2 |
250
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
260
|
0 |
0 |
unless defined $$rs{'fh'} |
264
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
265
|
0 |
0 |
if $line eq '@RSYNCD: EXIT' |
276
|
0 |
0 |
unless defined $$rs{'fh'} |
279
|
0 |
0 |
if $line =~ /\@ERROR: (.*)/ |
280
|
0 |
0 |
if ($line =~ /\@RSYNCD: AUTHREQD (.{22})/) { } |
|
0 |
0 |
elsif ($authRequired) { } |
287
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
290
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
292
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
298
|
0 |
0 |
if $line =~ /\@ERROR: (.*)/ |
299
|
0 |
0 |
if ($line ne '@RSYNCD: OK') |
302
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
311
|
0 |
0 |
if $remoteSend |
316
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
334
|
0 |
0 |
unless socketpair RSYNC, FH, 1, 1, 0 |
339
|
0 |
0 |
if ref $$rs{'rsyncCmd'} ne 'ARRAY' and ref $$rs{'rsyncCmd'} ne 'CODE' |
342
|
0 |
0 |
if ($$rs{'rsyncCmdType'} eq 'full' or ref $$rs{'rsyncCmd'} ne 'ARRAY') { } |
346
|
0 |
0 |
if $remoteSend |
348
|
0 |
0 |
if ($$rs{'rsyncCmdType'} eq 'shell') |
358
|
0 |
0 |
if ($remoteSend) { } |
364
|
0 |
0 |
if ref $cmd eq 'ARRAY' and $$rs{'logLevel'} >= 1 |
366
|
0 |
0 |
unless ($pid = fork) |
377
|
0 |
0 |
if (ref $cmd eq 'CODE') { } |
389
|
0 |
0 |
if defined $$rs{'pidHandler'} |
395
|
0 |
0 |
if $$rs{'logLevel'} >= 3 |
396
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
397
|
0 |
0 |
if $rs->getData(4) < 0 |
402
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
403
|
0 |
0 |
if $$rs{'protocol_version'} > $$rs{'remote_protocol'} |
405
|
0 |
0 |
if $$rs{'fio_version'} >= 2 |
407
|
0 |
0 |
if ($version < 20 or $version > 40) |
411
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
420
|
0 |
0 |
unless defined $$rs{'fh'} |
430
|
0 |
0 |
if $rs->getData(4) < 0 |
435
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
438
|
0 |
0 |
if ($$rs{'remoteSend'}) { } |
442
|
0 |
0 |
if ($rs->fileListReceive < 0) |
450
|
0 |
0 |
if ($$rs{'rsyncOpts'}{'hard-links'}) |
459
|
0 |
0 |
if ($$rs{'logLevel'} >= 2) |
473
|
0 |
0 |
if $rs->getChunk(4) < 0 |
480
|
0 |
0 |
if $$rs{'doPartial'} |
499
|
0 |
0 |
unless ($pid = fork) |
527
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
530
|
0 |
0 |
unless $$rs{'abort'} |
540
|
0 |
0 |
if $$rs{'abort'} |
552
|
0 |
0 |
if (fcntl $$rs{'fh'}, 3, $flags) { } |
554
|
0 |
0 |
unless (fcntl $$rs{'fh'}, 4, $flags) |
563
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
564
|
0 |
0 |
if defined $$rs{'pidHandler'} |
582
|
0 |
0 |
if ($$rs{'abort'}) |
588
|
0 |
0 |
if $$rs{'childDone'} >= 3 or $rs->pollChild(1) < 0 |
590
|
0 |
0 |
unless defined $$rs{'fatalErrorMsg'} |
599
|
0 |
0 |
if defined $$rs{'fatalErrorMsg'} |
607
|
0 |
0 |
if $$rs{'fatalError'} |
613
|
0 |
0 |
if $$rs{'fatalError'} |
619
|
0 |
0 |
if $$rs{'fatalError'} |
625
|
0 |
0 |
if $$rs{'abort'} |
644
|
0 |
0 |
unless defined $f |
645
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
653
|
0 |
0 |
if (not $thisIgnoreAttr and $$f{'size'} == $$attr{'size'} and $$f{'mtime'} == $$attr{'mtime'} and !$$rs{'rsyncOpts'}{'perms'} || $$f{'mode'} == $$attr{'mode'} and !$$rs{'rsyncOpts'}{'group'} || $$f{'gid'} == $$attr{'gid'} and !$$rs{'rsyncOpts'}{'owner'} || $$f{'uid'} == $$attr{'uid'} and !$$rs{'rsyncOpts'}{'hard-links'} || $$f{'hlink_self'} == $$attr{'hlink_self'}) |
688
|
0 |
0 |
if ($$arg{'name'} eq 'exclude') { } |
|
0 |
0 |
elsif ($$arg{'name'} eq 'include') { } |
|
0 |
0 |
elsif ($$arg{'name'} eq 'exclude-from') { } |
|
0 |
0 |
elsif ($$arg{'name'} eq 'include-from') { } |
|
0 |
0 |
elsif ($$arg{'name'} eq 'cvs-exclude') { } |
705
|
0 |
0 |
if ($$rs{'logLevel'} >= 1) |
707
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
709
|
0 |
0 |
if ($$exc{'flags'} & 16) { } |
722
|
0 |
0 |
if $$rs{'chunkData'} eq '' and $rs->getChunk(1) < 0 |
724
|
0 |
0 |
if $$rs{'fileList'}->fatalError |
725
|
0 |
0 |
if ($$rs{'logLevel'} >= 4) |
729
|
0 |
0 |
unless defined $f |
730
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
736
|
0 |
0 |
if ($cnt > 0) |
738
|
0 |
0 |
if not $$rs{'fileList'}->decodeDone and $rs->getChunk(length($$rs{'chunkData'}) + 1) < 0 |
757
|
0 |
0 |
unless defined $end |
760
|
0 |
0 |
unless defined $f |
761
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
765
|
0 |
0 |
if ($$rs{'doPartial'} and $$rs{'fileList'}->flagGet($n)) |
772
|
0 |
0 |
if (($$f{'mode'} & 61440) != 32768) { } |
|
0 |
0 |
elsif (defined $$f{'hlink'} and not $$f{'hlink_self'}) { } |
776
|
0 |
0 |
if (($$f{'mode'} & 61440) == 16384) { } |
777
|
0 |
0 |
if ($$rs{'fio'}->makePath($f)) |
782
|
0 |
0 |
if ($$rs{'fio'}->makeSpecial($f)) |
788
|
0 |
0 |
if ($$rs{'fio'}->makeHardLink($f, 0)) |
798
|
0 |
0 |
$phase == 0 ? : |
803
|
0 |
0 |
if $phase == 0 |
805
|
0 |
0 |
if ($$rs{'logLevel'} >= 2) |
810
|
0 |
0 |
if (@{$$rs{'doList'};}) |
813
|
0 |
0 |
unless defined $f |
814
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
817
|
0 |
0 |
if ($$rs{'doPartial'} and $$rs{'fileList'}->flagGet($n)) |
818
|
0 |
0 |
if $$rs{'logLevel'} >= 3 and ($$f{'mode'} & 61440) == 32768 |
829
|
0 |
0 |
if (not $ignoreAttr and $phase == 0 and $$f{'size'} == $$attr{'size'} and $$f{'mtime'} == $$attr{'mtime'} and !$$rs{'rsyncOpts'}{'perms'} || $$f{'mode'} == $$attr{'mode'} and !$$rs{'rsyncOpts'}{'group'} || $$f{'gid'} == $$attr{'gid'} and !$$rs{'rsyncOpts'}{'owner'} || $$f{'uid'} == $$attr{'uid'} and !$$rs{'rsyncOpts'}{'hard-links'} || $$f{'hlink_self'} == $$attr{'hlink_self'}) |
838
|
0 |
0 |
if $$rs{'logLevel'} >= 3 and ($$f{'mode'} & 61440) == 32768 |
845
|
0 |
0 |
if (($$f{'mode'} & 61440) != 32768) { } |
|
0 |
0 |
elsif ($$rs{'rsyncOpts'}{'hard-links'} and defined $$f{'hlink'} and not $$f{'hlink_self'}) { } |
|
0 |
0 |
elsif (not defined $$attr{'mode'} or ($$attr{'mode'} & 61440) != 32768) { } |
|
0 |
0 |
elsif (($blkSize = $$rs{'fio'}->csumStart($f, 0, $$rs{'blockSize'}, $phase)) < 0) { } |
864
|
0 |
0 |
if defined $$attr{'mode'} |
865
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
873
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
886
|
0 |
0 |
if ($blkSize <= 0) |
888
|
0 |
0 |
if $blkSize < $$rs{'blockSize'} |
890
|
0 |
0 |
if $blkSize > 16384 |
894
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
896
|
0 |
0 |
$blkCnt > 0 ? : |
902
|
0 |
0 |
$blkCnt > 256 ? : |
908
|
0 |
0 |
if $$rs{'abort'} |
915
|
0 |
0 |
if ($nWrite > 0 and not $$rs{'abort'}) |
921
|
0 |
0 |
if (not @{$$rs{'doList'};} and $phase == 1 and $$rs{'childDone'} == 1) |
935
|
0 |
0 |
if $$rs{'abort'} |
936
|
0 |
0 |
$phase == 1 && !@{$$rs{'doList'};} ? : |
938
|
0 |
0 |
if ($phase == 0) |
956
|
0 |
0 |
unless defined $$rs{'childFh'} |
957
|
0 |
0 |
if $$rs{'logLevel'} >= 12 |
963
|
0 |
0 |
unless vec $rout, fileno $$rs{'childFh'}, 1 |
967
|
0 |
0 |
if $nbytes > 0 |
968
|
0 |
0 |
if ($nbytes <= 0) |
971
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
991
|
0 |
0 |
if $$rs{'logLevel'} >= 20 |
993
|
0 |
0 |
if ($mesg =~ /^done$/) { } |
|
0 |
0 |
elsif ($mesg =~ /^stats (\d+) (\d+) (\d+) (\d+) (.*)/) { } |
|
0 |
0 |
elsif ($mesg =~ /^exit/) { } |
|
0 |
0 |
elsif ($mesg =~ /^redo (\d+)/) { } |
|
0 |
0 |
elsif ($mesg =~ /^log (.*)/) { } |
994
|
0 |
0 |
if $$rs{'logLevel'} >= 4 |
1003
|
0 |
0 |
if $$rs{'logLevel'} >= 4 |
1008
|
0 |
0 |
if $$rs{'logLevel'} >= 4 |
1011
|
0 |
0 |
if ($$rs{'phase'} == 1) { } |
1016
|
0 |
0 |
if $$rs{'logLevel'} >= 4 |
1029
|
0 |
0 |
$phase == 0 ? : |
1036
|
0 |
0 |
if $rs->getChunk(4) < 0 |
1039
|
0 |
0 |
if ($fileNum == 4294967295) |
1040
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
1045
|
0 |
0 |
unless defined $f |
1046
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
1048
|
0 |
0 |
if ($$rs{'protocol_version'} >= 27) { } |
1049
|
0 |
0 |
if $rs->getChunk(16) < 0 |
1055
|
0 |
0 |
if $rs->getChunk(12) < 0 |
1059
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
1070
|
0 |
0 |
if ($$f{'mode'} & 61440) != 32768 |
1073
|
0 |
0 |
$blkCnt > 0 ? : |
1078
|
0 |
0 |
$cnt > 256 ? : |
1080
|
0 |
0 |
if $fileSame |
1085
|
0 |
0 |
if $csum ne $csumRem |
1086
|
0 |
0 |
if $$rs{'logLevel'} >= 8 |
1101
|
0 |
0 |
if ($fileSame) { } |
1102
|
0 |
0 |
if $$rs{'logLevel'} >= 3 |
1116
|
0 |
0 |
if not defined $dataR or length $$dataR == 0 |
1141
|
0 |
0 |
if $rs->getChunk(4) < 0 |
1144
|
0 |
0 |
if $fileNum == 4294967295 |
1149
|
0 |
0 |
if $phase == 0 |
1153
|
0 |
0 |
unless defined $f |
1154
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
1156
|
0 |
0 |
if ($$rs{'protocol_version'} >= 27) { } |
1157
|
0 |
0 |
if $rs->getChunk(16) < 0 |
1163
|
0 |
0 |
if $rs->getChunk(12) < 0 |
1167
|
0 |
0 |
if $$rs{'logLevel'} >= 5 |
1173
|
0 |
0 |
if $rs->getChunk(4) < 0 |
1176
|
0 |
0 |
if ($len == 0) { } |
|
0 |
0 |
elsif ($len > 2147483648) { } |
1177
|
0 |
0 |
if $rs->getChunk(16) < 0 |
1182
|
0 |
0 |
if ($ret == 1) |
1183
|
0 |
0 |
if ($phase == 1) |
1187
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
1196
|
0 |
0 |
if $rs->getChunk($len) < 0 |
1206
|
0 |
0 |
if $phase == 1 |
1211
|
0 |
0 |
if $phase == 0 |
1213
|
0 |
0 |
if $$rs{'logLevel'} >= 2 |
1218
|
0 |
0 |
if ($phase == 1 and $$rs{'rsyncOpts'}{'hard-links'}) |
1222
|
0 |
0 |
unless defined $f |
1223
|
0 |
0 |
if not defined $$f{'hlink'} or $$f{'hlink_self'} |
1224
|
0 |
0 |
if ($$rs{'clientCharset'} ne '') |
1228
|
0 |
0 |
if ($$rs{'fio'}->makeHardLink($f, 1)) |
1249
|
0 |
0 |
if ($$rs{'rsyncOpts'}{'hard-links'}) |
1275
|
0 |
0 |
if ($$rs{'logLevel'} >= 4) |
1280
|
0 |
0 |
unless defined $f |
1281
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
1292
|
0 |
0 |
if ($$rs{'protocol_version'} >= 27) { } |
1317
|
0 |
0 |
if defined $timeout |
1319
|
0 |
0 |
if defined $$rs{'childPID'} |
1321
|
0 |
0 |
if $$rs{'timeout'} |
1330
|
0 |
0 |
if ($rs->getChunk(12) >= 0) |
1335
|
0 |
0 |
if (defined $fh) { } |
1356
|
0 |
0 |
if $$rs{'abort'} |
1357
|
0 |
0 |
if $$rs{'timeout'} |
1359
|
0 |
0 |
if $$rs{'abort'} |
1363
|
0 |
0 |
if $$rs{'abort'} |
1365
|
0 |
0 |
if (length $data == 0) |
1366
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
1367
|
0 |
0 |
if $$rs{'abort'} |
1369
|
0 |
0 |
if $$rs{'logLevel'} >= 1 |
1376
|
0 |
0 |
if ($$rs{'logLevel'} >= 10) |
1389
|
0 |
0 |
if $rs->getData(4) < 0 |
1394
|
0 |
0 |
if $rs->getData($len) < 0 |
1397
|
0 |
0 |
if ($code == 0) { } |
1401
|
0 |
0 |
if $$rs{'clientCharset'} ne '' |
1404
|
0 |
0 |
if ($code == 1 or $d =~ /^file has vanished: /) |
1418
|
0 |
0 |
if ($$rs{'readData'} =~ /(.*?)[\n\r]+(.*)/s) |
1422
|
0 |
0 |
if $rs->getData(length($$rs{'readData'}) + 1) < 0 |
1431
|
0 |
0 |
if $flush or length $$rs{'writeBuf'} > 32768 |
1438
|
0 |
0 |
unless defined $$rs{'stats'}{'parentStats'} |
1449
|
0 |
0 |
if $$rs{'abort'} |
1450
|
0 |
0 |
if $$rs{'timeout'} |
1454
|
0 |
0 |
if defined $$rs{'childFh'} |
1460
|
0 |
0 |
if (defined $$rs{'childFh'} and vec $rout, fileno $$rs{'childFh'}, 1) |
1464
|
0 |
0 |
if $$rs{'abort'} |
1465
|
0 |
0 |
if (vec $rwrite, fileno $$rs{'fh'}, 1) |
1467
|
0 |
0 |
if ($n <= 0) |
1471
|
0 |
0 |
if ($$rs{'logLevel'} >= 10) |
1495
|
0 |
0 |
if $str eq '' |