Tools to build and manipulate graphs of device relationships.
Bases: object
Build graphs of relationships between device mapper devices and partitions.
Build a complete graph showing device mapper, partition relationships.
Parameters: | context (Context) – a udev context |
---|---|
Returns: | a graph |
Return type: | DiGraph |
Build a graph of congruence relation between device mapper devices and partition devices.
Parameters: |
|
---|---|
Returns: | a graph |
Return type: | DiGraph |
Bases: object
Generic graph methods.
Add edges to graph from sources to targets.
Parameters: |
|
---|
Nodes are device_paths of each device, as these uniquely identify the device.
Add nodes in nodes to graph.
Parameters: |
|
---|
Nodes are device_paths of each device, as these uniquely identify the device.
Get node arguments, along with keys.
Parameters: |
|
---|---|
Returns: | arguments suitable for passing to add_nodes_from() |
Bases: object
Build graphs of partition relationships.
Build a complete graph of all partitions.
Parameters: | context (Context) – a udev context |
---|---|
Returns: | a graph |
Return type: | DiGraph |
Make a graph of partition relationships.
Parameters: | device (Device) – the partition device |
---|---|
Returns: | a graph |
Return type: | DiGraph |
Bases: object
Build graphs of relationships with actual physical disks.
Build a complete graph showing path/spindle relationships.
Parameters: | context (Context) – a udev context |
---|---|
Returns: | a graph |
Return type: | DiGraph |
Make a graph of spindle relationships.
Parameters: | device (Device) – the partition device |
---|---|
Returns: | a graph |
Return type: | DiGraph |
Bases: object
Composes holders/slaves graphs for block devices.
Build a complete graph showing all block devices.
Parameters: | context (Context) – a udev context |
---|---|
Returns: | a graph |
Return type: | DiGraph |
Bases: object
Build sysfs graphs in various ways.
Build a complete graph showing all devices.
Parameters: |
|
---|---|
Returns: | a graph |
Return type: | DiGraph |
Make a graph of the parents and children of a device.
Parameters: |
|
---|---|
Returns: | a graph |
Return type: | DiGraph |
Bases: object
Build simple graph from the holders or slaves of a given device.
Recursively defined function to generate a graph from device.
Parameters: |
|
---|
Yield graph of slaves of device, including the device.
Parameters: |
|
---|---|
Returns: | a graph |
Return type: | DiGraph |
Yield graph of slaves of device, including the device.
Parameters: |
|
---|---|
Returns: | a graph |
Return type: | DiGraph |
General graph of a sysfs traversal.
Parameters: |
|
---|---|
Returns: | a graph |
Return type: | DiGraph |