]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/scripts/rpc/nbd.py
1 def start_nbd_disk(client
, bdev_name
, nbd_device
):
6 params
['nbd_device'] = nbd_device
7 return client
.call('start_nbd_disk', params
)
10 def stop_nbd_disk(client
, nbd_device
):
11 params
= {'nbd_device': nbd_device
}
12 return client
.call('stop_nbd_disk', params
)
15 def get_nbd_disks(client
, nbd_device
=None):
18 params
['nbd_device'] = nbd_device
19 return client
.call('get_nbd_disks', params
)