Filesys::POSIX::Snapshot - Create and operate on filesystem snapshots
use Filesys::POSIX::Snapshot; ... $fs->mkpath('/snapshots/1'); $fs->mount(Filesys::POSIX::Snapshot->new, '/snapshots/1', 'path' => '/' );
This module implements a sort of snapshotting, or copy-on-write, mechanism that allows for the manipulation of any part of a filesystem in an isolated manner that does not affect the original data.
Depending on mount arguments, directory hierarchies are copied into memory as they are encountered, or are copied entirely into memory. Regular files are duplicated only when they are opened with
The following mount arguments are accepted by Filesys::POSIX::Snapshot.
The following value is mandatory:
The path within the current virtual filesystem which the snapshot will be based on.
The following value is not mandatory:
When set to a true value, the entire hierarchy of directory listings and inodes will be duplicated into memory from its source specified in the
Create a new, uninitialized snapshot filesystem object.
Initializes the new snapshot filesystem. A reference to the
%data structure will be retained in the filesystem object.
Exceptions will be thrown for the following: