Comments (3)
@avishayt @fromanirh I am hesitant to support multipath "devices" just like I am hesitant to support loopback devices.
This hesitation is especially true for mapper "devices" which aren't really devices at all and represent an abstraction above devices.
from ghw.
That's a good point indeed. These are abstractions provided by the linux kernel which happen to be presented using the same interface as the real devices. From this perspective it is out of scope from a hardware abstraction library.
Maybe it's too early, but it seems there it seems to be a trend emerging about features like DM and loopback which are not hardware proper but are traditionally modeled as block devicse and are similar enough to hardware to have a real use cases.
I'm really thinking aloud, but maybe a way forward could be worth to have something like a ghw companion/extension library to handle pseudo devices? I'll file a issue in the future to discuss this option.
from ghw.
@avishayt @fromanirh I might be convinced to add an entirely separate Go package for devicemappers, though. Such a package would treat device mappings/mappers as a separate construct (that would reference pkg/block.Disk
structs within it.
from ghw.
Related Issues (20)
- NIC on Windows has IsVirtual always set to false HOT 1
- I am surprised HOT 2
- May disk's driver type need more checks HOT 5
- Properly detect iSCSI disks HOT 2
- ghw-snapshot broken on Linux >= 5.16-rc3: hugepages demote HOT 1
- GPU information cannot be queried after virtual machine GPU pass through. By traversing the PCI information, it is found that the driver is not NVIDIA but vfio PCI. Can I add a vendor Name judge whether the PCI identification is GPU HOT 2
- replace ethtool invocation with go packages HOT 1
- drop use of blkid on block_linux.go HOT 1
- ghw.PCI throw an exception “pciFillInfo not implemented on windows” HOT 6
- github.com/StackExchange/wmi is archived, change it HOT 1
- too many open files error when using ghw in gotop client HOT 1
- Panic when collecting host information HOT 5
- Consider updating declared Go version in go.mod HOT 1
- On my windows, sometimes it show error: Cannot change thread mode after it is set HOT 7
- ci: enable gh actions with arm64 HOT 1
- ARM: failed to determine memory area for node: open /sys/devices/system/memory/block_size_bytes: no such file or directory HOT 7
- HDD is classified as SSD on windows 10 HOT 1
- Linux: failed to determine memory area for node: open /sys/devices/system/node/node0/memory_failure/state: no such file or directory HOT 13
- Possible bug in parsing core.ID and core.Index HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghw.