The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::ZFSCurses::Backend - Perform backend operations.

VERSION

Version 1.02.

METHODS

new

Create an instance of App::ZFSCurses::Backend.

is_zfs_installed

Run the `zfs' command using qx and return the return code.

get_zfs_datasets

Return ZFS datasets found on the system. This method runs "zfs list -t filesystem" behind the scenes.

get_zfs_properties

Return ZFS properties for a given dataset. This method expects a dataset as first argument.

set_zfs_property

Set property to a given ZFS dataset.

This method expects three arguments:

  • a dataset

  • a property

  • a value

SEE ALSO

The FreeBSD documentation on ZFS.

AUTHOR

Patrice Clement <monsieurp at cpan.org>

LICENSE AND COPYRIGHT

This software is copyright (c) 2020 by Patrice Clement.

This is free software, licensed under the (three-clause) clause BSD License.

See the LICENSE file.