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

Sys::Async::Virt::StorageVol - Client side proxy to remote LibVirt storage volume

VERSION

v0.0.1

SYNOPSIS

DESCRIPTION

EVENTS

CONSTRUCTOR

new

METHODS

delete

  await $vol->delete( $flags = 0 );
  # -> (* no data *)

See documentation of virStorageVolDelete.

get_info

  await $vol->get_info;
  # -> { allocation => $allocation,
  #      capacity => $capacity,
  #      type => $type }

See documentation of virStorageVolGetInfo.

get_path

  $name = await $vol->get_path;

See documentation of virStorageVolGetPath.

get_xml_desc

  $xml = await $vol->get_xml_desc( $flags = 0 );

See documentation of virStorageVolGetXMLDesc.

pool_lookup_by_volume

  $pool = await $vol->pool_lookup_by_volume;

See documentation of virStoragePoolLookupByVolume.

resize

  await $vol->resize( $capacity, $flags = 0 );
  # -> (* no data *)

See documentation of virStorageVolResize.

wipe

  await $vol->wipe( $flags = 0 );
  # -> (* no data *)

See documentation of virStorageVolWipe.

wipe_pattern

  await $vol->wipe_pattern( $algorithm, $flags = 0 );
  # -> (* no data *)

See documentation of virStorageVolWipePattern.

CONSTANTS

FILE
BLOCK
DIR
NETWORK
NETDIR
PLOOP
DELETE_NORMAL
DELETE_ZEROED
DELETE_WITH_SNAPSHOTS
WIPE_ALG_ZERO
WIPE_ALG_NNSA
WIPE_ALG_DOD
WIPE_ALG_BSI
WIPE_ALG_GUTMANN
WIPE_ALG_SCHNEIER
WIPE_ALG_PFITZNER7
WIPE_ALG_PFITZNER33
WIPE_ALG_RANDOM
WIPE_ALG_TRIM
USE_ALLOCATION
GET_PHYSICAL
DOWNLOAD_SPARSE_STREAM
UPLOAD_SPARSE_STREAM
RESIZE_ALLOCATE
RESIZE_DELTA
RESIZE_SHRINK

SEE ALSO

LibVirt, Sys::Virt

LICENSE AND COPYRIGHT

  Copyright (C) 2024 Erik Huelsmann

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.