BlockDev.LoopInfo¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
autoclear |
r/w |
whether the autoclear flag is set or not; |
|
backing_file |
r/w |
backing file for the give loop device; |
|
direct_io |
r/w |
whether direct IO is enabled or not; |
|
offset |
r/w |
offset of the start of the device (in backing_file); |
|
part_scan |
r/w |
whether the partition scan is enforced or not; |
|
read_only |
r/w |
whether the device is read-only or not; |
Methods¶
class |
|
Details¶
- class BlockDev.LoopInfo¶
- classmethod from_fd(fd)¶
- Parameters:
fd (
int) – file descriptor of an open loop device to get information about- Raises:
- Returns:
information about the loop device represented by fd or
Nonein case of errorTech category:
BlockDev.LoopTech.LOOP_TECH_LOOP-BlockDev.LoopTechMode.QUERY- Return type: