Pawel Wodkowski 4dc0ef6f45 scripts: fix executable attribute for includes
rpmbuild pointed out that this is wrong to have executable files without
shebang. Taking the opportunity and fix this for other files too.

Change-Id: Ib21f436672150edc0aff511bff2eb6839870cf79
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/425382
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-09-18 16:34:45 +00:00

19 lines
486 B
Python

def start_nbd_disk(client, bdev_name, nbd_device):
params = {
'bdev_name': bdev_name,
'nbd_device': nbd_device
}
return client.call('start_nbd_disk', params)
def stop_nbd_disk(client, nbd_device):
params = {'nbd_device': nbd_device}
return client.call('stop_nbd_disk', params)
def get_nbd_disks(client, nbd_device=None):
params = {}
if nbd_device:
params['nbd_device'] = nbd_device
return client.call('get_nbd_disks', params)