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

storage: Be multipath safe. #2596

Closed
wants to merge 4 commits into from

Conversation

mvollmer
Copy link
Member

Show the whole picture about multipath devices and don't let people
mess with improperly configured ones.

@mvollmer
Copy link
Member Author

Next up: integration tests.

For multipath testing.
@mvollmer mvollmer changed the title WIP - Be multipath safe storage: Be multipath safe. Aug 18, 2015
@mvollmer
Copy link
Member Author

Next up: integration tests.

Done.

var mpath_members = [ ];
var non_mpath_members = [ ];

all_blocks.sort(function (a, b) { return a.DeviceNumber - b.DeviceNumber; });
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you use the difference between the device numbers as the sort key? This seems unusual enough to deserve a comment.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, agreed. This is a common pattern in the storage code. I'll factor it out and document it.

Cockpit doesn't depend on it (yet), but the tests will use it.
Show the whole picture about multipath devices and don't let people
mess with improperly configured ones.

Fixes cockpit-project#2554
So that we can document it.
@dperpeet
Copy link
Contributor

code looks good, need to take this for a spin

@dperpeet
Copy link
Contributor

trying this out looks good
for a follow-up, it'd be nice to get a note why there are no options to actually use a multipathed disk
(enable multipathd)

@mvollmer mvollmer closed this in accaa13 Aug 20, 2015
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.

2 participants