LVM - Augeas Documentation

# LVM

Parses LVM metadata.

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

Summary

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

### 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