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

NAME

Linux::LVM2::Snapshot - a class representing a LV snapshot in an Linux LVM2

SYNOPSIS

    use Linux::LVM2::Snapshot;
    my $Mod = Linux::LVM2::Snapshot::->new();

DESCRIPTION

This class models a snapshoted LV from an Linux LVM2 LV.

ATTRIBUTES

name

The name of this snapshot LV

logger

An instance of Log::Tree

lv

The snapshot LV

source

The snapshoted LV

parent

Our parent, must be an instance of Linux::LVM2

clear_caches

UNDOCUMENTED

snapspace

Use this much GB for the snapshot

mount_point

UNDOCUMENTED

verbose

UNDOCUMENTED

sys

UNDOCUMENTED

fs

UNDOCUMENTED

METHODS

BUILD

Invoked by Moose on instantiation. Create the snapshot.

DEMOLISH

Invoked by Moose on destruction. Removes the snapshot.

full_path

Return the full path to this LV.

mapper_path

Return the dev-mapper path to this LV.

mount

Try to mount this LV snapshot to the given mount point.

remove

Try to unmount this LV, if mounted, and remove the LV afterwards.

umount

Try to unmount this LV.

valid

Returns true unless the snapshot is 100% full.

NAME

Linux::LVM2::Snapshot - Model a Snapshot LV.

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.