-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
Next up: integration tests. |
ea9837c
to
664a448
Compare
664a448
to
b41b9e9
Compare
For multipath testing.
218f927
to
c20ad9b
Compare
Done. |
var mpath_members = [ ]; | ||
var non_mpath_members = [ ]; | ||
|
||
all_blocks.sort(function (a, b) { return a.DeviceNumber - b.DeviceNumber; }); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
097e2b6
to
64e7e0f
Compare
64e7e0f
to
7fb286b
Compare
So that we can document it.
7fb286b
to
a044bf1
Compare
code looks good, need to take this for a spin |
trying this out looks good |
Show the whole picture about multipath devices and don't let people
mess with improperly configured ones.