GFS2FileSystemBlockSize - command stat -fc %s <mount_point_path>

The parser parse the output of stat -fc %s <mount_point_path>

class insights.parsers.gfs2_file_system_block_size.GFS2FileSystemBlockSize(context, extra_bad_lines=None)[source]

Bases: CommandParser

Class for parsing stat -fc %s <mount_point_path> command output. The size is kept in the block_size property. Typical output of command stat -fc %s <mount_point_path> looks like:

4096

Examples:

>>> type(gfs2_mp)
<class 'insights.parsers.gfs2_file_system_block_size.GFS2FileSystemBlockSize'>
>>> gfs2_mp.block_size
4096

Raise:

SkipComponent: When the content isn't in the expected format.

Attributes:

block_size (int): The block size of the gfs2 file system.
parse_content(content)[source]

This method must be implemented by classes based on this class.