mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rbd: Add rados namespace support for rbd
Make sure to operate within the namespace if any given when dealing with rbd images and snapshots and their journals. Signed-off-by: Mehdy Khoshnoody <mehdy.khoshnoody@gmail.com>
This commit is contained in:
committed by
Humble Devassy Chirammal
parent
b5320d9273
commit
fc5eadf106
@ -235,7 +235,8 @@ type Connection struct {
|
||||
}
|
||||
|
||||
// Connect establishes a new connection to a ceph cluster for journal metadata.
|
||||
func (cj *Config) Connect(monitors string, cr *util.Credentials) (*Connection, error) {
|
||||
func (cj *Config) Connect(monitors, namespace string, cr *util.Credentials) (*Connection, error) {
|
||||
cj.namespace = namespace
|
||||
cc := &util.ClusterConnection{}
|
||||
if err := cc.Connect(monitors, cr); err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user