The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Linux::LVM2::Utils - Linux LVM2 helper

SYNOPSIS

    use Linux::LVM2::Utils

DESCRIPTION

This class provides some helper methods that aid in handling of Linux LVM2 devices.

FUNCTIONS

find_devicemapper_major

Searches for the major number of the devicemapper device

translate_devmapper_name

This method tries to find a device mapper name based on the dm minor number.

It will return either the resolved device mapper name or the original device.

translate_lvm_name

This method tries to translate an dev-mapper device name to its LVM counterpart, e.g. /dev/mapper/vg-lv -> /dev/vg/lv

translate_mapper_name

Translates LVM names to their ugly devicemapper names e.g. /dev/VGfoo/LVbar -> /dev/mapper/VGfoo-LVbar

NAME

Linux::LVM2::Utils - LVM2 helper methods.

AUTHOR

Dominik Schulz <dominik.schulz@gauner.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Dominik Schulz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.