Added nvme details #20
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Sysdeploy/idlers-agent#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "swapnil/idlers-agent:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -138,0 +157,4 @@
return devices
# Get the list of nvme devices starting with 'nvme'
nvme_devices = [device for device in os.listdir('/dev') if device.startswith('nvme')]
I think this will include the character device, block device, and partitions (and also
/dev/nvme-fabrics
which I don't even know what it is). A better option is to look in/sys/block/nvme*
. That will only include the main block device (e.g.nvme0n1
), and then you can join/dev/
and the file name.also, needs rebasing
6a3c5737e5
to75744e0010