line |
true |
false |
branch |
78
|
0 |
0 |
if $policy |
79
|
0 |
0 |
if $state |
88
|
0 |
0 |
if $$self{'state'} |
89
|
0 |
0 |
unless $devs and ref $devs |
104
|
0 |
0 |
unless ($$p{'leave_in_drain_mode'}) |
105
|
0 |
0 |
if $sdev |
138
|
0 |
0 |
unless (@_) |
153
|
0 |
0 |
if (ref $val eq 'ARRAY') { } |
169
|
0 |
0 |
if $constraint |
171
|
0 |
0 |
unless $settings |
175
|
0 |
0 |
if (index($value, ',') > -1) |
181
|
0 |
0 |
if ($constraint) { } |
182
|
0 |
0 |
if (exists $$constraint{$key}) { } |
185
|
0 |
0 |
if (ref $c and ref $c eq 'ARRAY' and not ref $value) { } |
212
|
0 |
0 |
unless $policy |
213
|
0 |
0 |
unless $devs |
214
|
0 |
0 |
unless $sto |
219
|
0 |
0 |
unless $sdev |
223
|
0 |
0 |
unless @$filtered_destdevs |
230
|
0 |
0 |
unless (@fids and $self->_check_limits) |
242
|
0 |
0 |
unless $fid->exists |
243
|
0 |
0 |
unless $self->_check_limits($fid) |
252
|
0 |
0 |
unless (@devfids) |
267
|
0 |
0 |
if $$p{'limit_by'} eq 'none' |
270
|
0 |
0 |
if ($$p{'limit_type'} eq 'global') { } |
276
|
0 |
0 |
if ($$p{'limit_by'} eq 'count') { } |
|
0 |
0 |
elsif ($$p{'limit_by'} eq 'size') { } |
277
|
0 |
0 |
$fid ? : |
279
|
0 |
0 |
if ($fid) { } |
280
|
0 |
0 |
if ($fid->length <= $$limit) { } |
287
|
0 |
0 |
if ($$limit < 1024) { } |
310
|
0 |
0 |
if $$p{'use_dest_devs'} eq 'all' |
324
|
0 |
0 |
unless $dev->can_delete_from |
326
|
0 |
0 |
if (@{$$policy{'from_devices'};}) |
327
|
0 |
0 |
unless grep {$_ == $id;} @{$$policy{'from_devices'};} |
329
|
0 |
0 |
if (@{$$policy{'from_hosts'};}) |
331
|
0 |
0 |
unless grep {$_ == $hostid;} @{$$policy{'from_hosts'};} |
334
|
0 |
0 |
if ($$policy{'from_percent_used'}) |
337
|
0 |
0 |
unless defined $full |
338
|
0 |
0 |
unless $full > $$policy{'from_percent_used'} |
341
|
0 |
0 |
if ($$policy{'from_percent_free'}) |
344
|
0 |
0 |
unless $free |
345
|
0 |
0 |
unless $free > $$policy{'from_percent_free'} |
348
|
0 |
0 |
if ($$policy{'from_space_used'}) |
350
|
0 |
0 |
unless $used and $used > $$policy{'from_space_used'} |
353
|
0 |
0 |
if ($$policy{'from_space_free'}) |
355
|
0 |
0 |
unless $free and $free > $$policy{'from_space_free'} |
367
|
0 |
0 |
unless $$state{'sdev_current'} |
375
|
0 |
0 |
unless ($$policy{'leave_in_drain_mode'}) |
388
|
0 |
0 |
unless ($$state{'sdev_current'}) |
390
|
0 |
0 |
unless $sdev |
394
|
0 |
0 |
if ($$p{'limit_type'} eq 'device') |
395
|
0 |
0 |
if ($$p{'limit_by'} eq 'size') { } |
|
0 |
0 |
elsif ($$p{'limit_by'} eq 'count') { } |
|
0 |
0 |
elsif ($$p{'limit_by'} eq 'percent') { } |
|
0 |
0 |
elsif ($$p{'limit_by'} eq 'none') { } |
422
|
0 |
0 |
if ($num =~ /^(\d+)([bkmgtp])?$/i) { } |
429
|
0 |
0 |
unless $type or $type eq 'b' |
449
|
0 |
0 |
unless $dev->should_get_new_files |
453
|
0 |
0 |
if (@{$$policy{'to_devices'};}) |
454
|
0 |
0 |
unless grep {$_ == $id;} @{$$policy{'to_devices'};} |
456
|
0 |
0 |
if (@{$$policy{'to_hosts'};}) |
457
|
0 |
0 |
unless grep {$_ == $hostid;} @{$$policy{'to_hosts'};} |
459
|
0 |
0 |
if (@{$$policy{'not_to_devices'};}) |
460
|
0 |
0 |
if grep {$_ == $id;} @{$$policy{'not_to_devices'};} |
462
|
0 |
0 |
if (@{$$policy{'not_to_hosts'};}) |
463
|
0 |
0 |
if grep {$_ == $hostid;} @{$$policy{'not_to_hosts'};} |
465
|
0 |
0 |
if ($$policy{'to_percent_used'}) |
467
|
0 |
0 |
unless defined $full |
468
|
0 |
0 |
unless $full > $$policy{'to_percent_used'} |
470
|
0 |
0 |
if ($$policy{'to_percent_free'}) |
472
|
0 |
0 |
unless $free |
473
|
0 |
0 |
unless $free > $$policy{'to_percent_free'} |
475
|
0 |
0 |
if ($$policy{'to_space_used'}) |
477
|
0 |
0 |
unless $used and $used > $$policy{'to_space_used'} |
479
|
0 |
0 |
if ($$policy{'to_space_free'}) |
481
|
0 |
0 |
unless $free and $free > $$policy{'to_space_free'} |