Safe Haskell | None |
---|
Logical Volumer information parser
This module holds the definition of the parser that extracts status
information about the logical volumes (LVs) of the system from the output of the
lvs
command.
Synopsis
- lvsSeparator :: Char
- skipSpaces :: Parser ()
- bytesP :: Parser Int
- intP :: Parser Int
- stringP :: Parser String
- lvCommand :: String
- lvParams :: [String]
- oneLvParser :: Parser LVInfo
- lvParser :: Parser [LVInfo]
Documentation
lvsSeparator :: Char Source #
The separator of the fields returned by lvs
Utility functions
skipSpaces :: Parser () Source #
Our own space-skipping function, because A.skipSpace also skips newline characters. It skips ZERO or more spaces, so it does not fail if there are no spaces.
A parser recognizing a number of bytes, represented as a number preceeded by a separator and followed by the B character.
stringP :: Parser String Source #
A parser recognizing a string starting with and closed by a separator (both are discarded)
Parser implementation
oneLvParser :: Parser LVInfo Source #
The parser for one line of the diskstatus file.