Skip to content

Fix VSS metadata error (master)#5112

Merged
MichaelEischer merged 10 commits intorestic:masterfrom
MichaelEischer:fix-vss-root-volume
Nov 3, 2024
Merged

Fix VSS metadata error (master)#5112
MichaelEischer merged 10 commits intorestic:masterfrom
MichaelEischer:fix-vss-root-volume

Conversation

@MichaelEischer
Copy link
Copy Markdown
Member

@MichaelEischer MichaelEischer commented Oct 31, 2024

What does this PR change? What problem does it solve?

Fix VSS metadata error, see #5107 for details.

Was the change previously discussed in an issue or on the forum?

Fixes #5107

Checklist

  • I have read the contribution guidelines.
  • I have enabled maintainer edits.
  • I have added tests for all code changes.
  • [ ] I have added documentation for relevant changes (in the manual).
  • There's a new file in changelog/unreleased/ that describes the changes for our users (see template).
  • I have run gofmt on the code in all commits.
  • All commit messages are formatted in the same style as the other commits in the repo.
  • I'm done! This pull request is ready for review.

Paths that only contain the volume shadow copy snapshot name require
special treatment. These paths must end with a slash for regular file
operations to work.
Extended attributes and security descriptors apparently cannot be
retrieved from a vss volume. Fix the volume check to correctly detect
vss volumes and just completely disable extended attributes for volumes.
The test used \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1 , which if
it exists and supports extended attributes can cause the test to fail.
Copy link
Copy Markdown
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

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

LGTM.

@MichaelEischer MichaelEischer merged commit d5bd3fc into restic:master Nov 3, 2024
@MichaelEischer MichaelEischer deleted the fix-vss-root-volume branch November 3, 2024 20:30
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.

Since 0.17.2 "error: incomplete metadata for C:: multiple errors occurred: [get named security info failed with:"

1 participant