Skip to content

Conversation

@jkowalski
Copy link
Contributor

This is useful when backing up directories that have giant files aligned at MiB boundary, such as VM disk backups, etc.

@codecov
Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 96.36364% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 77.18%. Comparing base (cb455c6) to head (ff804e9).
Report is 148 commits behind head on master.

Files Patch % Lines
cli/command_policy_set.go 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3887      +/-   ##
==========================================
+ Coverage   75.86%   77.18%   +1.32%     
==========================================
  Files         470      481      +11     
  Lines       37301    28795    -8506     
==========================================
- Hits        28299    22226    -6073     
+ Misses       7071     4668    -2403     
+ Partials     1931     1901      -30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jkowalski jkowalski requested review from ashmrtn and julio-lopez May 30, 2024 01:54
Copy link
Collaborator

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

🥇Thanks for splitting the PR in easily reviewable commits. It made it so much easier. Thanks again!

var splitFactory splitter.Factory

if opt.Splitter != "" {
splitFactory = splitter.GetFactory(opt.Splitter)
Copy link
Collaborator

@julio-lopez julio-lopez Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: if the specified splitter is not found, then this silently falls back to the default. This may be confusing since there's no error or warning. Is this logged anywhere?

@jkowalski

//nolint:unparam
func (c *policySplitterFlags) setSplitterPolicyFromFlags(ctx context.Context, p *policy.SplitterPolicy, changeCount *int) error {
if v := c.policySetSplitterAlgorithmOverride; v != "" {
if v == inheritPolicyString {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: IIUC, inheritPolicyString is used in order for resetting a policy setting when it was already set in a child, is that the case? Otherwise, what's the difference between "inheriting" and an unset value?

lines = compressSpaces(lines)
require.Contains(t, lines, " Algorithm override: FIXED-4M (defined for this target)")

e.RunAndExpectSuccess(t, "policy", "set", td, "--splitter=inherit")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this answers my previous (above) question

@julio-lopez julio-lopez merged commit e36fa78 into kopia:master Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants