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

refactor!: Remove "filesystem_mounts" and "snapshot_version" field in backup "info" file #1709

Merged
merged 5 commits into from
May 10, 2024

Conversation

buhtz
Copy link
Member

@buhtz buhtz commented May 2, 2024

Each snapshot contains an "info" file. This PR remove the two fields "filesystem_mounts" and "snapshot_version" from it because they are not used.

Additionally related code and unit tests are removed or modified.

There is no strict need but I created a changelog entry if it might impacts someone.

Close #1684

"""
logger.info("Create info file", self)
Copy link
Member Author

Choose a reason for hiding this comment

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

IMHO BIT is to verbose in INFO mode and also give meaningless output.

i.setStrValue('snapshot_date', sid.withoutTag)
i.setStrValue('snapshot_machine', machine)
i.setStrValue('snapshot_user', user)
i.setIntValue('snapshot_profile_id', profile_id)
i.setIntValue('snapshot_tag', sid.tag)
i.setListValue('user', ('int:uid', 'str:name'), list(self.userCache.items()))
i.setListValue('group', ('int:gid', 'str:name'), list(self.groupCache.items()))
i.setStrValue('filesystem_mounts', json.dumps(tools.filesystemMountInfo()))
Copy link
Member Author

Choose a reason for hiding this comment

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

This call to tools.filesystemMountInfo() was my inital trigger to work on this. Discovered this function and wondered for what it might be useful.

@buhtz buhtz added the PR: Merge after creative-break Merge after creative-break (min. 1 week) label May 2, 2024
@buhtz buhtz merged commit 19d5ebc into bit-team:dev May 10, 2024
1 check passed
@buhtz buhtz deleted the refactor/1684deadfields branch May 10, 2024 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Merge after creative-break Merge after creative-break (min. 1 week)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove dead code related to "filesystem_mounts" and "snapshot_version" field in backup "info" file
1 participant