Skip to content

Commit 4cc2199

Browse files
Merge pull request #16 from nmeyerhans/ioctl-ro-fd
ebsnvme-id: open devices in read-only mode
2 parents c1cb3e5 + dc11552 commit 4cc2199

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ebsnvme-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class ebs_nvme_device:
113113
alen=id_len,
114114
cdw10=1)
115115

116-
with open(self.device, "r+") as nvme:
116+
with open(self.device, "r") as nvme:
117117
ioctl(nvme, NVME_IOCTL_ADMIN_CMD, admin_cmd)
118118

119119
def ctrl_identify(self):

0 commit comments

Comments
 (0)