LVM

Parses LVM metadata.

Author: Gabriel de Perthuis <g2p.code+augeas@gmail.com>

Summary
LVMParses LVM metadata.
LicenseThis file is licensed under the LGPL v2+.
Configuration filesThis lens applies to files in /etc/lvm/backup and /etc/lvm/archive.
ExamplesThe Test_LVM file contains various examples and tests.
Augeas Lenses
identifierThe left hand side of a definition
flat_literalA literal without structure
listA list containing flat literals
valAny value that appears on the right hand side of an assignment
nondefA line that doesn’t contain a statement
defAn assignment, or a block containing definitions
lnsThe main lens

License

This file is licensed under the LGPL v2+.

Configuration files

This lens applies to files in /etc/lvm/backup and /etc/lvm/archive.

Examples

The Test_LVM file contains various examples and tests.

Augeas Lenses

identifier

let identifier = /[a-zA-Z0-9_-]+/

The left hand side of a definition

flat_literal

let flat_literal = int|str

A literal without structure

list

A list containing flat literals

val

let val = flat_literal | list

Any value that appears on the right hand side of an assignment

nondef

let nondef = Util.empty | Util.comment

A line that doesn’t contain a statement

def

An assignment, or a block containing definitions

lns

let lns = (nondef | def)*

The main lens

Provides unit tests and examples for the LVM lens.
let identifier = /[a-zA-Z0-9_-]+/
The left hand side of a definition
let flat_literal = int|str
A literal without structure
let val = flat_literal | list
Any value that appears on the right hand side of an assignment
let nondef = Util.empty | Util.comment
A line that doesn’t contain a statement
let lns = (nondef | def)*
The main lens
Close