Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend --strip test to expose a failure #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ComradeP
Copy link

@ComradeP ComradeP commented Oct 7, 2011

I noticed some oddities with incremental backups where --strip or --strip-path were involved with 'bup save'. This change extends the 'strip' test by doing two gratuitous index/save cycles after the initial save, which ends up with the latest version of the backup being empty and thus exposes a bug.

It seems to me that the problem is somewhere around lines 234--248 of cmd/save-cmd.py, where after mangling the directory using --strip, --strip-path or --graft the original 'ent' is used to validate trees, but my understanding of that part of the code isn't sufficient to allow me a quick fix.

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.

1 participant