Cant figure how to enumerate all physical disks, like hdds, ssds, NVMes and maybe flashdrives connected to machine and filter out all these loop devices, ram disks, cdrom and floppies.
I've checked out this and this to no avail.
In addition I would like to identify and distinguish remote device mapping(which are block devices) connected, like samba and such.
Any help is appreciated.
EDIT001: looks like /sys/block/devicename/device/type would give me some useful information according to this
the question is if I should look for
TYPE_DISK only or there is anything else I should consider
EDIT002: Interestingly, but NVMe disk does not contain ./device/type file