Skip to content

failed to create device: [Errno 1] Operation not permitted Invalid create_device operation #22

@zhuzhiwei99

Description

@zhuzhiwei99

As the README.md guides, we arrive at the step "How to Run",when we input the command "sudo ./infiniswap_bd_setup.sh", there are some errors happened. it indicates that "failed to create device: [Errno 1] Operation not permitted
Invalid create_device operation
".
Then we open the nbdxadm file and read the code, we find the error occurs at this place"
try:
print nbdxdevice
with open(os.path.join(device_path, 'device'), 'w') as device_file:
device_file.write(nbdxdevice)
print 123
except IOError, e:
print 'failed to create device: %s' % e
os.rmdir(device_path)
return 1
"
It seems that it could open and bulid the directory and the file device,but it can't write or modificate the file "device".
How can we solute this problem, wish you could help us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions