BlockDev.LoopInfo

Fields

Name

Type

Access

Description

autoclear

bool

r/w

whether the autoclear flag is set or not;

backing_file

str

r/w

backing file for the give loop device;

direct_io

bool

r/w

whether direct IO is enabled or not;

offset

int

r/w

offset of the start of the device (in backing_file);

part_scan

bool

r/w

whether the partition scan is enforced or not;

read_only

bool

r/w

whether the device is read-only or not;

Methods

class

from_fd (fd)

Details

class BlockDev.LoopInfo
classmethod from_fd(fd)
Parameters:

fd (int) – file descriptor of an open loop device to get information about

Raises:

GLib.Error

Returns:

information about the loop device represented by fd or None in case of error

Tech category: BlockDev.LoopTech.LOOP_TECH_LOOP-BlockDev.LoopTechMode.QUERY

Return type:

BlockDev.LoopInfo