crash.subsystem.filesystem.decoders module

class crash.subsystem.filesystem.decoders.DIOBioDecoder(bio: gdb.Value)[source]

Bases: crash.subsystem.storage.decoders.Decoder

Decodes a bio used for direct i/o.

This method decodes a bio generated by the direct-io component of the file system subsystem. The bio can either have been submitted directly or asynchronously.

Parameters:bio – The struct bio to be decoded, generated by the direct i/o component. The value must be of type struct bio.
bio

The bio. The value is of type struct bio.

Type:gdb.Value
dio

struct dio * that represents the direct i/o operation

Type:gdb.Value
fstype

the name of the file system type

Type:str
dev

the name of the underlying device

Type:str
offset

the starting offset on disk

Type:str
interpret() → None[source]

Interprets a direct i/o bio to populate its attributes

class crash.subsystem.filesystem.decoders.DecodeBioBH(bio: gdb.Value)[source]

Bases: crash.subsystem.storage.decoders.Decoder

Decodes a bio used to perform i/o for buffer_heads

This method decodes a bio generated by buffer head submission.

Parameters:bio – The struct bio to be decoded, generated by buffer head submission. The value must be of type struct bio.
bio

The bio. The value is of type struct bio.

Type:gdb.Value
bh

The struct buffer_head associated with this bio. The value is of type struct buffer_head.

Type:gdb.Value
interpret() → None[source]

Interpret the buffer_head bio to populate its attributes

class crash.subsystem.filesystem.decoders.DecodeMPage(bio: gdb.Value)[source]

Bases: crash.subsystem.storage.decoders.Decoder

Decodes a bio used for multipage i/o.

This method decodes a bio generated by the mpage component of the file system subsystem.

Parameters:bio – The struct bio to be decoded, generated by the mpage component. The value must be of type struct bio.
bio

The bio. The value is of type struct bio.

Type:gdb.Value
inode

The inode associated with this bio. The value is of type struct inode.

Type:gdb.Value
fstype

the name of the file system type

Type:str
description = '{:x} bio: Multipage I/O: inode {}, type {}, dev {}'
interpret() → None[source]

Interpret the multipage bio to populate its attributes

class crash.subsystem.filesystem.decoders.DecodeSyncWBBH(bh: gdb.Value)[source]

Bases: crash.subsystem.storage.decoders.Decoder

Decodes a struct buffer_head submitted by file systems for routine synchronous writeback.

Parameters:bio – The struct buffer_head to be decoded. The value must be of struct buffer_head.
bh

The struct buffer_head being decoded. The value is of type struct buffer_head.

Type:gdb.Value