Parses LVM metadata.
Author: Gabriel de Perthuis <g2p.code+augeas@gmail.com>
LVM | Parses LVM metadata. |
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 | The left hand side of a definition |
flat_literal | A literal without structure |
list | A list containing flat literals |
val | Any value that appears on the right hand side of an assignment |
nondef | A line that doesn’t contain a statement |
def | An assignment, or a block containing definitions |
lns | The main lens |
The Test_LVM file contains various examples and tests.
The left hand side of a definition
let identifier = /[a-zA-Z0-9_-]+/
A literal without structure
let flat_literal = int|str
Any value that appears on the right hand side of an assignment
let val = flat_literal | list
A line that doesn’t contain a statement
let nondef = Util.empty | Util.comment
The main lens
let lns = (nondef | def)*