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

Handling for corrupt or otherwise unsupported disklabels #650

Closed
wants to merge 4 commits into from

Conversation

dwlehman
Copy link
Contributor

This is the anaconda piece to storaged-project/blivet#427. The first patch is a touch-up for a recent commit. The next two are little tweaks to use blivet better, and the last one is the main event.

StorageDevice now includes a list of its children, so use that.
Also, account for the device itself being protected -- not just
its children.
Do not show the partitions or other devices on unsupported disklabels.
This allows users to clear and reinitialize them or just ignore them.
@dwlehman dwlehman added the master Please, use the `f39` label instead. label May 27, 2016
@@ -489,3 +489,8 @@ def reset_to_snapshot(self, storage, dispose=False):
# a snapshot of early storage as we got it from scanning disks without doing any
# changes
on_disk_storage = StorageSnapshot()

def filter_unsupported_disklabel_devices(devices):
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a terrible name for a function, but I don't have a better one. Except for maybe get_suported_disklabel_devices()? It's at least a bit shorter.

@vpodzime
Copy link
Contributor

Looks good to me.

@vpodzime vpodzime added the ACK label May 30, 2016
@dwlehman
Copy link
Contributor Author

I had fixed that function name but then I accidentally pushed an older version of the patches without that fix.

@dwlehman dwlehman closed this May 31, 2016
@dwlehman dwlehman deleted the unsupported-disklabels branch May 31, 2016 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master Please, use the `f39` label instead.
2 participants