-
Notifications
You must be signed in to change notification settings - Fork 255
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
Implement rbd map functionality #93
Comments
Can you point at the function you want wrapped? |
Is this what you mean ;-) https://github.com/torvalds/linux/blob/master/include/linux/ceph/libceph.h |
On Mon, Dec 30, 2019 at 09:55:57AM -0800, Camilo Schöningh wrote:
Is this what you mean ;-) https://github.com/torvalds/linux/blob/master/include/linux/ceph/libceph.h
These are Linux kernel functions that can not simply be called from a
userspace go-ceph application. Instead, the part that calls these
functions is implemented in ceph executables and libraries.
Possibly krbd_map() and the like could be used from go-ceph:
https://github.com/ceph/ceph/blob/master/src/include/krbd.h
However, I do not think these functions (and structs) are exported for
external consumers of Ceph libraries. My guess is that librbd needs to
get extended to provide rbd_map() and rbd_unmap() functions.
|
@Madhu-1 can you please follow up with clarification on what functionality you are asking for. I feel that the other contributors to this thread have been helpful but we've been kinda guessing at the request. If you have a specific function in either the librbd/librados/etc please either link to it or spell out the function name, if the functionality is part of one of the ceph cli tools but you don't know the exact implementation that's ok too, just spell out what cli is being used and we can do a little additional research. If as nixpanic suggests this is a feature that's not exported by the libs we can make a feature request in ceph and then link it here to monitor for a future ceph release. If we can't do any of the above I'd suggest we close this request. |
@phlogistonjohn I was referring to
|
Thanks! We can leave this open to consider an additional helper package(s) that would interact with the system. |
For future reference function |
I do not like duplicating the work done in the @dillaman is it reasonable to request |
I think it would be reasonable to add For |
I believe the desire is to move ceph-csi to native Go function calls where possible. The hope is to have simpler and more efficient interactions with ceph without the costs of fork-and-exec'ing the cli tools. So for this case the function calls would be used to map the rbd devices to the local kernel. @Madhu-1 and @nixpanic please correct me if I am wrong about the motivation. |
@noahdesu is it possible to implement the above functionality to do it?
The text was updated successfully, but these errors were encountered: