-
Notifications
You must be signed in to change notification settings - Fork 527
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
nbd: fix concurrent nbd map #302
nbd: fix concurrent nbd map #302
Conversation
nbd/src/util.cpp
Outdated
} | ||
} | ||
|
||
int map_on_nbd_device_by_devpath(int sockfd, const std::string& devpath, |
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.
This function can be reused by the above function through some adjustments
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.
Done
nbd/src/util.cpp
Outdated
@@ -441,6 +393,74 @@ int load_module(NBDConfig *cfg) { | |||
return ret; | |||
} | |||
|
|||
int map_on_unused_nbd_device(int sockfd, std::string* devpath, int* nbdindex) { |
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.
This function can be protect function in the parent class ’NBDController' ?
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.
Done
0c5f459
to
2e9f178
Compare
thanos: Selected Students for Community Bridge Q3-Q4
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List