Skip to content

Extend --strip test to expose a failure#4

Open
ComradeP wants to merge 1 commit into
apenwarr:masterfrom
ComradeP:stripTest
Open

Extend --strip test to expose a failure#4
ComradeP wants to merge 1 commit into
apenwarr:masterfrom
ComradeP:stripTest

Conversation

@ComradeP

@ComradeP ComradeP commented Oct 7, 2011

Copy link
Copy Markdown

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