Session
Object Hierarchy:
Description:
A libguestfs session, encapsulating a single libguestfs handle.
Namespace: Guestfs
Package: libguestfs-gobject-1.0
Content:
Creation methods:
- public Session ()
Create a new libguestfs session.
Methods:
- public bool acl_delete_def_file (string dir) throws Error
delete the default POSIX ACL of a directory
- public string acl_get_file (string path, string acltype) throws Error
get the POSIX ACL attached to a file
- public bool acl_set_file (string path, string acltype, string acl) throws Error
set the POSIX ACL attached to a file
- public bool add_cdrom (string filename) throws Error
add a CD-ROM disk image to examine
- public int32 add_domain (string dom, AddDomain? optargs) throws Error
add the disk(s) from a named libvirt domain
- public bool add_drive (string filename, AddDrive? optargs) throws Error
add an image to examine or modify
- public bool add_drive_ro (string filename) throws Error
add a drive in snapshot mode (read-only)
- public bool add_drive_ro_with_if (string filename, string iface) throws Error
add a drive read-only specifying the QEMU block emulation to use
- public bool add_drive_scratch (int64 size, AddDriveScratch? optargs) throws Error
add a temporary scratch drive
- public bool add_drive_with_if (string filename, string iface) throws Error
add a drive specifying the QEMU block emulation to use
- public int32 add_libvirt_dom (void* dom, AddLibvirtDom? optargs) throws Error
add the disk(s) from a libvirt domain
- public bool aug_clear (string augpath) throws Error
clear Augeas path
- public bool aug_close () throws Error
close the current Augeas handle
- public IntBool aug_defnode (string name, string expr, string val) throws Error
define an Augeas node
- public int32 aug_defvar (string name, string? expr) throws Error
define an Augeas variable
- public string aug_get (string augpath) throws Error
look up the value of an Augeas path
- public bool aug_init (string root, int32 flags) throws Error
create a new Augeas handle
- public bool aug_insert (string augpath, string label, bool before) throws Error
insert a sibling Augeas node
- public string aug_label (string augpath) throws Error
return the label from an Augeas path expression
- public bool aug_load () throws Error
load files into the tree
- public string[] aug_ls (string augpath) throws Error
list Augeas nodes under augpath
- public string[] aug_match (string augpath) throws Error
return Augeas nodes which match augpath
- public bool aug_mv (string src, string dest) throws Error
move Augeas node
- public int32 aug_rm (string augpath) throws Error
remove an Augeas path
- public bool aug_save () throws Error
write all pending Augeas changes to disk
- public bool aug_set (string augpath, string val) throws Error
set Augeas path to value
- public int32 aug_setm (string @base, string? sub, string val) throws Error
set multiple Augeas nodes
- public bool aug_transform (string lens, string file, AugTransform? optargs) throws Error
add/remove an Augeas lens transformation
- public bool available (string[] groups) throws Error
test availability of some parts of the API
- public string[] available_all_groups () throws Error
return a list of all optional groups
- public bool base64_in (string base64file, string filename, Cancellable? cancellable = null) throws Error
upload base64-encoded data to file
- public bool base64_out (string filename, string base64file, Cancellable? cancellable = null) throws Error
download file and encode as base64
- public bool blkdiscard (string device) throws Error
discard all blocks on a device
- public int8 blkdiscardzeroes (string device) throws Error
return true if discarded blocks are read as zeroes
- public HashTable<string,string> blkid (string device) throws Error
print block device attributes
- public bool blockdev_flushbufs (string device) throws Error
flush device buffers
- public int32 blockdev_getbsz (string device) throws Error
get blocksize of block device
- public int8 blockdev_getro (string device) throws Error
is block device set to read-only
- public int64 blockdev_getsize64 (string device) throws Error
get total size of device in bytes
- public int32 blockdev_getss (string device) throws Error
get sectorsize of block device
- public int64 blockdev_getsz (string device) throws Error
get total size of device in 512-byte sectors
- public bool blockdev_rereadpt (string device) throws Error
reread partition table
- public bool blockdev_setbsz (string device, int32 blocksize) throws Error
set blocksize of block device
- public bool blockdev_setra (string device, int32 sectors) throws Error
set readahead
- public bool blockdev_setro (string device) throws Error
set block device to read-only
- public bool blockdev_setrw (string device) throws Error
set block device to read-write
- public bool btrfs_balance_cancel (string path) throws Error
cancel a running or paused balance
- public bool btrfs_balance_pause (string path) throws Error
pause a running balance
- public bool btrfs_balance_resume (string path) throws Error
resume a paused balance
- public BTRFSBalance btrfs_balance_status (string path) throws Error
show the status of a running or paused balance
- public bool btrfs_device_add (string[] devices, string fs) throws Error
add devices to a btrfs filesystem
- public bool btrfs_device_delete (string[] devices, string fs) throws Error
remove devices from a btrfs filesystem
- public bool btrfs_filesystem_balance (string fs) throws Error
balance a btrfs filesystem
- public bool btrfs_filesystem_defragment (string path, BTRFSFilesystemDefragment? optargs) throws Error
defragment a file or directory
- public bool btrfs_filesystem_resize (string mountpoint, BTRFSFilesystemResize? optargs) throws Error
resize a btrfs filesystem
- public string[] btrfs_filesystem_show (string device) throws Error
list devices for btrfs filesystem
- public bool btrfs_filesystem_sync (string fs) throws Error
sync a btrfs filesystem
- public bool btrfs_fsck (string device, BtrfsFsck? optargs) throws Error
check a btrfs filesystem
- public bool btrfs_image (string[] source, string image, BTRFSImage? optargs) throws Error
create an image of a btrfs filesystem
- public bool btrfs_qgroup_assign (string src, string dst, string path) throws Error
add a qgroup to a parent qgroup
- public bool btrfs_qgroup_create (string qgroupid, string subvolume) throws Error
create a subvolume quota group
- public bool btrfs_qgroup_destroy (string qgroupid, string subvolume) throws Error
destroy a subvolume quota group
- public bool btrfs_qgroup_limit (string subvolume, int64 size) throws Error
limit the size of a subvolume
- public bool btrfs_qgroup_remove (string src, string dst, string path) throws Error
remove a qgroup from its parent qgroup
- public BTRFSQgroup[] btrfs_qgroup_show (string path) throws Error
show subvolume quota groups
- public bool btrfs_quota_enable (string fs, bool enable) throws Error
enable or disable subvolume quota support
- public bool btrfs_quota_rescan (string fs) throws Error
trash all qgroup numbers and scan the metadata again with the current config
- public bool btrfs_replace (string srcdev, string targetdev, string mntpoint) throws Error
replace a btrfs managed device with another device
- public bool btrfs_rescue_chunk_recover (string device) throws Error
recover the chunk tree of btrfs filesystem
- public bool btrfs_rescue_super_recover (string device) throws Error
recover bad superblocks from good copies
- public bool btrfs_scrub_cancel (string path) throws Error
cancel a running scrub
- public bool btrfs_scrub_resume (string path) throws Error
resume a previously canceled or interrupted scrub
- public bool btrfs_scrub_start (string path) throws Error
read all data from all disks and verify checksums
- public BTRFSScrub btrfs_scrub_status (string path) throws Error
show status of running or finished scrub
- public bool btrfs_set_seeding (string device, bool seeding) throws Error
enable or disable the seeding feature of device
- public bool btrfs_subvolume_create (string dest, BTRFSSubvolumeCreate? optargs) throws Error
create a btrfs subvolume
- public bool btrfs_subvolume_delete (string subvolume) throws Error
delete a btrfs subvolume or snapshot
- public int64 btrfs_subvolume_get_default (string fs) throws Error
get the default subvolume or snapshot of a filesystem
- public BTRFSSubvolume[] btrfs_subvolume_list (string fs) throws Error
list btrfs snapshots and subvolumes
- public bool btrfs_subvolume_set_default (int64 id, string fs) throws Error
set default btrfs subvolume
- public HashTable<string,string> btrfs_subvolume_show (string subvolume) throws Error
return detailed information of the subvolume
- public bool btrfs_subvolume_snapshot (string source, string dest, BTRFSSubvolumeSnapshot? optargs) throws Error
create a btrfs snapshot
- public bool btrfstune_enable_extended_inode_refs (string device) throws Error
enable extended inode refs
- public bool btrfstune_enable_skinny_metadata_extent_refs (string device) throws Error
enable skinny metadata extent refs
- public bool btrfstune_seeding (string device, bool seeding) throws Error
enable or disable seeding of a btrfs device
- public int64 c_pointer () throws Error
return the C pointer to the guestfs_h handle
- public string canonical_device_name (string device) throws Error
return canonical device name
- public string cap_get_file (string path) throws Error
get the Linux capabilities attached to a file
- public bool cap_set_file (string path, string cap) throws Error
set the Linux capabilities attached to a file
- public string case_sensitive_path (string path) throws Error
return true path on case-insensitive filesystem
- public string cat (string path) throws Error
list the contents of a file
- public string checksum (string csumtype, string path) throws Error
compute MD5, SHAx or CRC checksum of file
- public string checksum_device (string csumtype, string device) throws Error
compute MD5, SHAx or CRC checksum of the contents of a device
- public bool checksums_out (string csumtype, string directory, string sumsfile, Cancellable? cancellable = null) throws Error
compute MD5, SHAx or CRC checksum of files in a directory
- public bool chmod (int32 mode, string path) throws Error
change file mode
- public bool chown (int32 owner, int32 group, string path) throws Error
change file owner and group
- public int32 clear_backend_setting (string name) throws Error
remove a single per-backend settings string
- public string command (string[] arguments) throws Error
run a command from the guest filesystem
- public string[] command_lines (string[] arguments) throws Error
run a command, returning lines
- public bool compress_device_out (string ctype, string device, string zdevice, CompressDeviceOut? optargs, Cancellable? cancellable = null) throws Error
output compressed device
- public bool compress_out (string ctype, string file, string zfile, CompressOut? optargs, Cancellable? cancellable = null) throws Error
output compressed file
- public bool config (string hvparam, string? hvvalue) throws Error
add hypervisor parameters
- public bool copy_attributes (string src, string dest, CopyAttributes? optargs) throws Error
copy the attributes of a path (file/directory) to another
- public bool copy_device_to_device (string src, string dest, CopyDeviceToDevice? optargs) throws Error
copy from source device to destination device
- public bool copy_device_to_file (string src, string dest, CopyDeviceToFile? optargs) throws Error
copy from source device to destination file
- public bool copy_file_to_device (string src, string dest, CopyFileToDevice? optargs) throws Error
copy from source file to destination device
- public bool copy_file_to_file (string src, string dest, CopyFileToFile? optargs) throws Error
copy from source file to destination file
- public bool copy_in (string localpath, string remotedir) throws Error
copy local files or directories into an image
- public bool copy_out (string remotepath, string localdir) throws Error
copy remote files or directories out of an image
- public bool copy_size (string src, string dest, int64 size) throws Error
copy size bytes from source to destination using dd
- public bool cp (string src, string dest) throws Error
copy a file
- public bool cp_a (string src, string dest) throws Error
copy a file or directory recursively
- public bool cp_r (string src, string dest) throws Error
copy a file or directory recursively
- public bool cpio_out (string directory, string cpiofile, CpioOut? optargs, Cancellable? cancellable = null) throws Error
pack directory into cpio file
- public bool dd (string src, string dest) throws Error
copy from source to destination using dd
- public string debug (string subcmd, string[] extraargs) throws Error
debugging and internals
- public string[] debug_drives () throws Error
debug the drives (internal use only)
- public bool debug_upload (string filename, string tmpname, int32 mode, Cancellable? cancellable = null) throws Error
upload a file to the appliance (internal use only)
- public int32 device_index (string device) throws Error
convert device to index
- public string df () throws Error
report file system disk space usage
- public string df_h () throws Error
report file system disk space usage (human readable)
- public bool disk_create (string filename, string format, int64 size, DiskCreate? optargs) throws Error
create a blank disk image
- public string disk_format (string filename) throws Error
detect the disk format of a disk image
- public int8 disk_has_backing_file (string filename) throws Error
return whether disk has a backing file
- public int64 disk_virtual_size (string filename) throws Error
return virtual size of a disk
- public string dmesg () throws Error
return kernel messages
- public bool download (string remotefilename, string filename, Cancellable? cancellable = null) throws Error
download a file to the local machine
- public bool download_blocks (string device, int64 start, int64 stop, string filename, DownloadBlocks? optargs, Cancellable? cancellable = null) throws Error
download the given data units from the disk
- public bool download_inode (string device, int64 inode, string filename, Cancellable? cancellable = null) throws Error
download a file to the local machine given its inode
- public bool download_offset (string remotefilename, string filename, int64 offset, int64 size, Cancellable? cancellable = null) throws Error
download a file to the local machine with offset and size
- public bool drop_caches (int32 whattodrop) throws Error
drop kernel page cache, dentries and inodes
- public int64 du (string path) throws Error
estimate file space usage
- public bool e2fsck (string device, E2fsck? optargs) throws Error
check an ext2/ext3 filesystem
- public bool e2fsck_f (string device) throws Error
check an ext2/ext3 filesystem
- public string echo_daemon (string[] words) throws Error
echo arguments back to the client
- public string[] egrep (string regex, string path) throws Error
return lines matching a pattern
- public string[] egrepi (string regex, string path) throws Error
return lines matching a pattern
- public int8 equal (string file1, string file2) throws Error
test if two files have equal contents
- public int8 exists (string path) throws Error
test if file or directory exists
- public bool extlinux (string directory) throws Error
install the SYSLINUX bootloader on an ext2/3/4 or btrfs filesystem
- public bool f2fs_expand (string device) throws Error
expand a f2fs filesystem
- public bool fallocate (string path, int32 len) throws Error
preallocate a file in the guest filesystem
- public bool fallocate64 (string path, int64 len) throws Error
preallocate a file in the guest filesystem
- public int8 feature_available (string[] groups) throws Error
test availability of some parts of the API
- public string[] fgrep (string pattern, string path) throws Error
return lines matching a pattern
- public string[] fgrepi (string pattern, string path) throws Error
return lines matching a pattern
- public string file (string path) throws Error
determine file type
- public string file_architecture (string filename) throws Error
detect the architecture of a binary file
- public int64 filesize (string file) throws Error
return the size of the file in bytes
- public int8 filesystem_available (string filesystem) throws Error
check if filesystem is available
- public TSKDirent[] filesystem_walk (string device, Cancellable? cancellable = null) throws Error
walk through the filesystem content
- public bool fill (int32 c, int32 len, string path) throws Error
fill a file with octets
- public bool fill_dir (string dir, int32 nr) throws Error
fill a directory with empty files
- public bool fill_pattern (string pattern, int32 len, string path) throws Error
fill a file with a repeating pattern of bytes
- public string[] find (string directory) throws Error
find all files and directories
- public bool find0 (string directory, string files, Cancellable? cancellable = null) throws Error
find all files and directories, returning NUL-separated list
- public TSKDirent[] find_inode (string device, int64 inode, Cancellable? cancellable = null) throws Error
search the entries associated to the given inode
- public string findfs_label (string label) throws Error
find a filesystem by label
- public string findfs_uuid (string uuid) throws Error
find a filesystem by UUID
- public int32 fsck (string fstype, string device) throws Error
run the filesystem checker
- public bool fstrim (string mountpoint, Fstrim? optargs) throws Error
trim free space in a filesystem
- public unowned string get_append () throws Error
get the additional kernel options
- public string get_attach_method () throws Error
get the backend
- public int8 get_autosync () throws Error
get autosync mode
- public string get_backend () throws Error
get the backend
- public string get_backend_setting (string name) throws Error
get a single per-backend settings string
- public string[] get_backend_settings () throws Error
get per-backend settings
- public string get_cachedir () throws Error
get the appliance cache directory
- public int8 get_direct () throws Error
get direct appliance mode flag
- public string get_e2attrs (string file) throws Error
get ext2 file attributes of a file
- public int64 get_e2generation (string file) throws Error
get ext2 file generation of a file
- public string get_e2label (string device) throws Error
get the ext2/3/4 filesystem label
- public string get_e2uuid (string device) throws Error
get the ext2/3/4 filesystem UUID
- public string get_hv () throws Error
get the hypervisor binary
- public unowned string get_identifier () throws Error
get the handle identifier
- public string get_libvirt_requested_credential_challenge (int32 index) throws Error
challenge of i'th requested credential
- public string get_libvirt_requested_credential_defresult (int32 index) throws Error
default result of i'th requested credential
- public string get_libvirt_requested_credential_prompt (int32 index) throws Error
prompt of i'th requested credential
- public string[] get_libvirt_requested_credentials () throws Error
get list of credentials requested by libvirt
- public int32 get_memsize () throws Error
get memory allocated to the hypervisor
- public int8 get_network () throws Error
get enable network flag
- public unowned string get_path () throws Error
get the search path
- public int8 get_pgroup () throws Error
get process group flag
- public int32 get_pid () throws Error
get PID of hypervisor
- public unowned string get_program () throws Error
get the program name
- public unowned string get_qemu () throws Error
get the hypervisor binary (usually qemu)
- public int8 get_recovery_proc () throws Error
get recovery process enabled flag
- public int8 get_selinux () throws Error
get SELinux enabled flag
- public int32 get_smp () throws Error
get number of virtual CPUs in appliance
- public string get_sockdir () throws Error
get the temporary directory for sockets
- public int32 get_state () throws Error
get the current state
- public string get_tmpdir () throws Error
get the temporary directory
- public int8 get_trace () throws Error
get command trace enabled flag
- public int32 get_umask () throws Error
get the current umask
- public int8 get_verbose () throws Error
get verbose mode
- public string getcon () throws Error
get SELinux security context
- public uint8[] getxattr (string path, string name) throws Error
get a single extended attribute
- public XAttr[] getxattrs (string path) throws Error
list extended attributes of a file or directory
- public string[] glob_expand (string pattern, GlobExpand? optargs) throws Error
expand a wildcard path
- public string[] grep (string regex, string path, Grep? optargs) throws Error
return lines matching a pattern
- public string[] grepi (string regex, string path) throws Error
return lines matching a pattern
- public bool grub_install (string root, string device) throws Error
install GRUB 1
- public string[] head (string path) throws Error
return first 10 lines of a file
- public string[] head_n (int32 nrlines, string path) throws Error
return first N lines of a file
- public string hexdump (string path) throws Error
dump a file in hexadecimal
- public bool hivex_close () throws Error
close the current hivex handle
- public bool hivex_commit (string? filename) throws Error
commit (write) changes back to the hive
- public int64 hivex_node_add_child (int64 parent, string name) throws Error
add a child node
- public HivexNode[] hivex_node_children (int64 nodeh) throws Error
return list of nodes which are subkeys of node
- public bool hivex_node_delete_child (int64 nodeh) throws Error
delete a node (recursively)
- public int64 hivex_node_get_child (int64 nodeh, string name) throws Error
return the named child of node
- public int64 hivex_node_get_value (int64 nodeh, string key) throws Error
return the named value
- public string hivex_node_name (int64 nodeh) throws Error
return the name of the node
- public int64 hivex_node_parent (int64 nodeh) throws Error
return the parent of node
- public bool hivex_node_set_value (int64 nodeh, string key, int64 t, uint8[] val) throws Error
set or replace a single value in a node
- public HivexValue[] hivex_node_values (int64 nodeh) throws Error
return list of values attached to node
- public bool hivex_open (string filename, HivexOpen? optargs) throws Error
open a Windows Registry hive file
- public int64 hivex_root () throws Error
return the root node of the hive
- public string hivex_value_key (int64 valueh) throws Error
return the key field from the (key, datatype, data) tuple
- public string hivex_value_string (int64 valueh) throws Error
return the data field as a UTF-8 string
- public int64 hivex_value_type (int64 valueh) throws Error
return the data type from the (key, datatype, data) tuple
- public string hivex_value_utf8 (int64 valueh) throws Error
return the data field as a UTF-8 string
- public uint8[] hivex_value_value (int64 valueh) throws Error
return the data field from the (key, datatype, data) tuple
- public uint8[] initrd_cat (string initrdpath, string filename) throws Error
list the contents of a single file in an initrd
- public string[] initrd_list (string path) throws Error
list files in an initrd
- public int64 inotify_add_watch (string path, int32 mask) throws Error
add an inotify watch
- public bool inotify_close () throws Error
close the inotify handle
- public string[] inotify_files () throws Error
return list of watched files that had events
- public bool inotify_init (int32 maxevents) throws Error
create an inotify handle
- public INotifyEvent[] inotify_read () throws Error
return list of inotify events
- public bool inotify_rm_watch (int32 wd) throws Error
remove an inotify watch
- public string inspect_get_arch (string root) throws Error
get architecture of inspected operating system
- public string inspect_get_distro (string root) throws Error
get distro of inspected operating system
- public HashTable<string,string> inspect_get_drive_mappings (string root) throws Error
get drive letter mappings
- public string[] inspect_get_filesystems (string root) throws Error
get filesystems associated with inspected operating system
- public string inspect_get_format (string root) throws Error
get format of inspected operating system
- public string inspect_get_hostname (string root) throws Error
get hostname of the operating system
- public uint8[] inspect_get_icon (string root, InspectGetIcon? optargs) throws Error
get the icon corresponding to this operating system
- public int32 inspect_get_major_version (string root) throws Error
get major version of inspected operating system
- public int32 inspect_get_minor_version (string root) throws Error
get minor version of inspected operating system
- public HashTable<string,string> inspect_get_mountpoints (string root) throws Error
get mountpoints of inspected operating system
- public string inspect_get_osinfo (string root) throws Error
get a possible osinfo short ID corresponding to this operating system
- public string inspect_get_package_format (string root) throws Error
get package format used by the operating system
- public string inspect_get_package_management (string root) throws Error
get package management tool used by the operating system
- public string inspect_get_product_name (string root) throws Error
get product name of inspected operating system
- public string inspect_get_product_variant (string root) throws Error
get product variant of inspected operating system
- public string[] inspect_get_roots () throws Error
return list of operating systems found by last inspection
- public string inspect_get_type (string root) throws Error
get type of inspected operating system
- public string inspect_get_windows_current_control_set (string root) throws Error
get Windows CurrentControlSet of inspected operating system
- public string inspect_get_windows_software_hive (string root) throws Error
get the path of the Windows software hive
- public string inspect_get_windows_system_hive (string root) throws Error
get the path of the Windows system hive
- public string inspect_get_windows_systemroot (string root) throws Error
get Windows systemroot of inspected operating system
- public int8 inspect_is_live (string root) throws Error
get live flag for install disk
- public int8 inspect_is_multipart (string root) throws Error
get multipart flag for install disk
- public int8 inspect_is_netinst (string root) throws Error
get netinst (network installer) flag for install disk
- public Application[] inspect_list_applications (string root) throws Error
get list of applications installed in the operating system
- public Application2[] inspect_list_applications2 (string root) throws Error
get list of applications installed in the operating system
- public string[] inspect_os () throws Error
inspect disk and return list of operating systems found
- public bool internal_exit (Cancellable? cancellable = null) throws Error
cause the daemon to exit (internal use only)
- public bool internal_test (string str, string? optstr, string[] strlist, bool b, int32 integer, int64 integer64, string filein, string fileout, uint8[] bufferin, InternalTest? optargs, Cancellable? cancellable = null) throws Error
internal test function - do not use
- public bool internal_test_63_optargs (InternalTest63Optargs? optargs, Cancellable? cancellable = null) throws Error
internal test function - do not use
- public bool internal_test_close_output () throws Error
internal test function - do not use
- public bool internal_test_only_optargs (InternalTestOnlyOptargs? optargs, Cancellable? cancellable = null) throws Error
internal test function - do not use
- public int8 internal_test_rbool (string val) throws Error
internal test function - do not use
- public int8 internal_test_rboolerr () throws Error
internal test function - do not use
- public uint8[] internal_test_rbufferout (string val) throws Error
internal test function - do not use
- public uint8[] internal_test_rbufferouterr () throws Error
internal test function - do not use
- public unowned string internal_test_rconstoptstring (string val) throws Error
internal test function - do not use
- public unowned string internal_test_rconstoptstringerr () throws Error
internal test function - do not use
- public unowned string internal_test_rconststring (string val) throws Error
internal test function - do not use
- public unowned string internal_test_rconststringerr () throws Error
internal test function - do not use
- public HashTable<string,string> internal_test_rhashtable (string val) throws Error
internal test function - do not use
- public HashTable<string,string> internal_test_rhashtableerr () throws Error
internal test function - do not use
- public int32 internal_test_rint (string val) throws Error
internal test function - do not use
- public int64 internal_test_rint64 (string val) throws Error
internal test function - do not use
- public int64 internal_test_rint64err () throws Error
internal test function - do not use
- public int32 internal_test_rinterr () throws Error
internal test function - do not use
- public string internal_test_rstring (string val) throws Error
internal test function - do not use
- public string internal_test_rstringerr () throws Error
internal test function - do not use
- public string[] internal_test_rstringlist (string val) throws Error
internal test function - do not use
- public string[] internal_test_rstringlisterr () throws Error
internal test function - do not use
- public PV internal_test_rstruct (string val) throws Error
internal test function - do not use
- public PV internal_test_rstructerr () throws Error
internal test function - do not use
- public PV[] internal_test_rstructlist (string val) throws Error
internal test function - do not use
- public PV[] internal_test_rstructlisterr () throws Error
internal test function - do not use
- public bool internal_test_set_output (string filename) throws Error
internal test function - do not use
- public int8 is_blockdev (string path, IsBlockdev? optargs) throws Error
test if block device
- public int8 is_busy () throws Error
is busy processing a command
- public int8 is_chardev (string path, IsChardev? optargs) throws Error
test if character device
- public int8 is_config () throws Error
is in configuration state
- public int8 is_dir (string path, IsDir? optargs) throws Error
test if a directory
- public int8 is_fifo (string path, IsFifo? optargs) throws Error
test if FIFO (named pipe)
- public int8 is_file (string path, IsFile? optargs) throws Error
test if a regular file
- public int8 is_launching () throws Error
is launching subprocess
- public int8 is_lv (string mountable) throws Error
test if mountable is a logical volume
- public int8 is_ready () throws Error
is ready to accept commands
- public int8 is_socket (string path, IsSocket? optargs) throws Error
test if socket
- public int8 is_symlink (string path) throws Error
test if symbolic link
- public int8 is_whole_device (string device) throws Error
test if a device is a whole device
- public int8 is_zero (string path) throws Error
test if a file contains all zero bytes
- public int8 is_zero_device (string device) throws Error
test if a device contains all zero bytes
- public ISOInfo isoinfo (string isofile) throws Error
get ISO information from primary volume descriptor of ISO file
- public ISOInfo isoinfo_device (string device) throws Error
get ISO information from primary volume descriptor of device
- public bool journal_close () throws Error
close the systemd journal
- public XAttr[] journal_get () throws Error
read the current journal entry
- public int64 journal_get_data_threshold () throws Error
get the data threshold for reading journal entries
- public int64 journal_get_realtime_usec () throws Error
get the timestamp of the current journal entry
- public int8 journal_next () throws Error
move to the next journal entry
- public bool journal_open (string directory) throws Error
open the systemd journal
- public bool journal_set_data_threshold (int64 threshold) throws Error
set the data threshold for reading journal entries
- public int64 journal_skip (int64 skip) throws Error
skip forwards or backwards in the journal
- public bool kill_subprocess () throws Error
kill the hypervisor
- public bool launch () throws Error
launch the backend
- public bool lchown (int32 owner, int32 group, string path) throws Error
change file owner and group
- public bool ldmtool_create_all () throws Error
scan and create Windows dynamic disk volumes
- public string[] ldmtool_diskgroup_disks (string diskgroup) throws Error
return the disks in a Windows dynamic disk group
- public string ldmtool_diskgroup_name (string diskgroup) throws Error
return the name of a Windows dynamic disk group
- public string[] ldmtool_diskgroup_volumes (string diskgroup) throws Error
return the volumes in a Windows dynamic disk group
- public bool ldmtool_remove_all () throws Error
remove all Windows dynamic disk volumes
- public string[] ldmtool_scan () throws Error
scan for Windows dynamic disks
- public string[] ldmtool_scan_devices (string[] devices) throws Error
scan for Windows dynamic disks
- public string ldmtool_volume_hint (string diskgroup, string volume) throws Error
return the hint field of a Windows dynamic disk volume
- public string[] ldmtool_volume_partitions (string diskgroup, string volume) throws Error
return the partitions in a Windows dynamic disk volume
- public string ldmtool_volume_type (string diskgroup, string volume) throws Error
return the type of a Windows dynamic disk volume
- public uint8[] lgetxattr (string path, string name) throws Error
get a single extended attribute
- public XAttr[] lgetxattrs (string path) throws Error
list extended attributes of a file or directory
- public string[] list_9p () throws Error
list 9p filesystems
- public string[] list_devices () throws Error
list the block devices
- public HashTable<string,string> list_disk_labels () throws Error
mapping of disk labels to devices
- public string[] list_dm_devices () throws Error
list device mapper devices
- public HashTable<string,string> list_filesystems () throws Error
list filesystems
- public string[] list_ldm_partitions () throws Error
list all Windows dynamic disk partitions
- public string[] list_ldm_volumes () throws Error
list all Windows dynamic disk volumes
- public string[] list_md_devices () throws Error
list Linux md (RAID) devices
- public string[] list_partitions () throws Error
list the partitions
- public string ll (string directory) throws Error
list the files in a directory (long format)
- public string llz (string directory) throws Error
list the files in a directory (long format with SELinux contexts)
- public bool ln (string target, string linkname) throws Error
create a hard link
- public bool ln_f (string target, string linkname) throws Error
create a hard link
- public bool ln_s (string target, string linkname) throws Error
create a symbolic link
- public bool ln_sf (string target, string linkname) throws Error
create a symbolic link
- public bool lremovexattr (string xattr, string path) throws Error
remove extended attribute of a file or directory
- public string[] ls (string directory) throws Error
list the files in a directory
- public bool ls0 (string dir, string filenames) throws Error
get list of files in a directory
- public bool lsetxattr (string xattr, string val, int32 vallen, string path) throws Error
set extended attribute of a file or directory
- public Stat lstat (string path) throws Error
get file information for a symbolic link
- public Stat[] lstatlist (string path, string[] names) throws Error
lstat on multiple files
- public StatNS lstatns (string path) throws Error
get file information for a symbolic link
- public StatNS[] lstatnslist (string path, string[] names) throws Error
lstat on multiple files
- public bool luks_add_key (string device, string key, string newkey, int32 keyslot) throws Error
add a key on a LUKS encrypted device
- public bool luks_close (string device) throws Error
close a LUKS device
- public bool luks_format (string device, string key, int32 keyslot) throws Error
format a block device as a LUKS encrypted device
- public bool luks_format_cipher (string device, string key, int32 keyslot, string cipher) throws Error
format a block device as a LUKS encrypted device
- public bool luks_kill_slot (string device, string key, int32 keyslot) throws Error
remove a key from a LUKS encrypted device
- public bool luks_open (string device, string key, string mapname) throws Error
open a LUKS-encrypted block device
- public bool luks_open_ro (string device, string key, string mapname) throws Error
open a LUKS-encrypted block device read-only
- public bool lvcreate (string logvol, string volgroup, int32 mbytes) throws Error
create an LVM logical volume
- public bool lvcreate_free (string logvol, string volgroup, int32 percent) throws Error
create an LVM logical volume in % remaining free space
- public string lvm_canonical_lv_name (string lvname) throws Error
get canonical name of an LV
- public bool lvm_clear_filter () throws Error
clear LVM device filter
- public bool lvm_remove_all () throws Error
remove all LVM LVs, VGs and PVs
- public bool lvm_scan (bool activate) throws Error
scan for LVM physical volumes, volume groups and logical volumes
- public bool lvm_set_filter (string[] devices) throws Error
set LVM device filter
- public bool lvremove (string device) throws Error
remove an LVM logical volume
- public bool lvrename (string logvol, string newlogvol) throws Error
rename an LVM logical volume
- public bool lvresize (string device, int32 mbytes) throws Error
resize an LVM logical volume
- public bool lvresize_free (string lv, int32 percent) throws Error
expand an LV to fill free space
- public string[] lvs () throws Error
list the LVM logical volumes (LVs)
- public LV[] lvs_full () throws Error
list the LVM logical volumes (LVs)
- public string lvuuid (string device) throws Error
get the UUID of a logical volume
- public XAttr[] lxattrlist (string path, string[] names) throws Error
lgetxattr on multiple files
- public int32 max_disks () throws Error
maximum number of disks that may be added
- public bool md_create (string name, string[] devices, MDCreate? optargs) throws Error
create a Linux md (RAID) device
- public HashTable<string,string> md_detail (string md) throws Error
obtain metadata for an MD device
- public MDStat[] md_stat (string md) throws Error
get underlying devices from an MD device
- public bool md_stop (string md) throws Error
stop a Linux md (RAID) device
- public bool mkdir (string path) throws Error
create a directory
- public bool mkdir_mode (string path, int32 mode) throws Error
create a directory with a particular mode
- public bool mkdir_p (string path) throws Error
create a directory and parents
- public string mkdtemp (string tmpl) throws Error
create a temporary directory
- public bool mke2fs (string device, Mke2fs? optargs) throws Error
create an ext2/ext3/ext4 filesystem on device
- public bool mke2fs_J (string fstype, int32 blocksize, string device, string journal) throws Error
make ext2/3/4 filesystem with external journal
- public bool mke2fs_JL (string fstype, int32 blocksize, string device, string label) throws Error
make ext2/3/4 filesystem with external journal
- public bool mke2fs_JU (string fstype, int32 blocksize, string device, string uuid) throws Error
make ext2/3/4 filesystem with external journal
- public bool mke2journal (int32 blocksize, string device) throws Error
make ext2/3/4 external journal
- public bool mke2journal_L (int32 blocksize, string label, string device) throws Error
make ext2/3/4 external journal with label
- public bool mke2journal_U (int32 blocksize, string uuid, string device) throws Error
make ext2/3/4 external journal with UUID
- public bool mkfifo (int32 mode, string path) throws Error
make FIFO (named pipe)
- public bool mkfs (string fstype, string device, Mkfs? optargs) throws Error
make a filesystem
- public bool mkfs_b (string fstype, int32 blocksize, string device) throws Error
make a filesystem with block size
- public bool mkfs_btrfs (string[] devices, MkfsBtrfs? optargs) throws Error
create a btrfs filesystem
- public bool mklost_and_found (string mountpoint) throws Error
make lost+found directory on an ext2/3/4 filesystem
- public bool mkmountpoint (string exemptpath) throws Error
create a mountpoint
- public bool mknod (int32 mode, int32 devmajor, int32 devminor, string path) throws Error
make block, character or FIFO devices
- public bool mknod_b (int32 mode, int32 devmajor, int32 devminor, string path) throws Error
make block device node
- public bool mknod_c (int32 mode, int32 devmajor, int32 devminor, string path) throws Error
make char device node
- public bool mksquashfs (string path, string filename, Mksquashfs? optargs, Cancellable? cancellable = null) throws Error
create a squashfs filesystem
- public bool mkswap (string device, Mkswap? optargs) throws Error
create a swap partition
- public bool mkswap_L (string label, string device) throws Error
create a swap partition with a label
- public bool mkswap_U (string uuid, string device) throws Error
create a swap partition with an explicit UUID
- public bool mkswap_file (string path) throws Error
create a swap file
- public string mktemp (string tmpl, Mktemp? optargs) throws Error
create a temporary file
- public bool modprobe (string modulename) throws Error
load a kernel module
- public bool mount (string mountable, string mountpoint) throws Error
mount a guest disk at a position in the filesystem
- public bool mount_9p (string mounttag, string mountpoint, Mount9P? optargs) throws Error
mount 9p filesystem
- public bool mount_local (string localmountpoint, MountLocal? optargs) throws Error
mount on the local filesystem
- public bool mount_local_run (Cancellable? cancellable = null) throws Error
run main loop of mount on the local filesystem
- public bool mount_loop (string file, string mountpoint) throws Error
mount a file using the loop device
- public bool mount_options (string options, string mountable, string mountpoint) throws Error
mount a guest disk with mount options
- public bool mount_ro (string mountable, string mountpoint) throws Error
mount a guest disk, read-only
- public bool mount_vfs (string options, string vfstype, string mountable, string mountpoint) throws Error
mount a guest disk with mount options and vfstype
- public string mountable_device (string mountable) throws Error
extract the device part of a mountable
- public string mountable_subvolume (string mountable) throws Error
extract the subvolume part of a mountable
- public HashTable<string,string> mountpoints () throws Error
show mountpoints
- public string[] mounts () throws Error
show mounted filesystems
- public bool mv (string src, string dest) throws Error
move a file
- public int32 nr_devices () throws Error
return number of whole block devices (disks) added
- public int32 ntfs_3g_probe (bool rw, string device) throws Error
probe NTFS volume
- public bool ntfscat_i (string device, int64 inode, string filename, Cancellable? cancellable = null) throws Error
download a file to the local machine given its inode
- public bool ntfsclone_in (string backupfile, string device, Cancellable? cancellable = null) throws Error
restore NTFS from backup file
- public bool ntfsclone_out (string device, string backupfile, NtfscloneOut? optargs, Cancellable? cancellable = null) throws Error
save NTFS to backup file
- public bool ntfsfix (string device, Ntfsfix? optargs) throws Error
fix common errors and force Windows to check NTFS
- public bool ntfsresize (string device, NTFSResizeOpts? optargs) throws Error
resize an NTFS filesystem
- public bool ntfsresize_size (string device, int64 size) throws Error
resize an NTFS filesystem (with size)
- public bool parse_environment () throws Error
parse the environment and set handle flags accordingly
- public bool parse_environment_list (string[] environment) throws Error
parse the environment and set handle flags accordingly
- public bool part_add (string device, string prlogex, int64 startsect, int64 endsect) throws Error
add a partition to the device
- public bool part_del (string device, int32 partnum) throws Error
delete a partition
- public bool part_disk (string device, string parttype) throws Error
partition whole disk with a single primary partition
- public bool part_expand_gpt (string device) throws Error
move backup GPT header to the end of the disk
- public int8 part_get_bootable (string device, int32 partnum) throws Error
return true if a partition is bootable
- public string part_get_disk_guid (string device) throws Error
get the GUID of a GPT-partitioned disk
- public int64 part_get_gpt_attributes (string device, int32 partnum) throws Error
get the attribute flags of a GPT partition
- public string part_get_gpt_guid (string device, int32 partnum) throws Error
get the GUID of a GPT partition
- public string part_get_gpt_type (string device, int32 partnum) throws Error
get the type GUID of a GPT partition
- public int32 part_get_mbr_id (string device, int32 partnum) throws Error
get the MBR type byte (ID byte) from a partition
- public string part_get_mbr_part_type (string device, int32 partnum) throws Error
get the MBR partition type
- public string part_get_name (string device, int32 partnum) throws Error
get partition name
- public string part_get_parttype (string device) throws Error
get the partition table type
- public bool part_init (string device, string parttype) throws Error
create an empty partition table
- public Partition[] part_list (string device) throws Error
list partitions on a device
- public bool part_resize (string device, int32 partnum, int64 endsect) throws Error
resize a partition
- public bool part_set_bootable (string device, int32 partnum, bool bootable) throws Error
make a partition bootable
- public bool part_set_disk_guid (string device, string guid) throws Error
set the GUID of a GPT-partitioned disk
- public bool part_set_disk_guid_random (string device) throws Error
set the GUID of a GPT-partitioned disk to random value
- public bool part_set_gpt_attributes (string device, int32 partnum, int64 attributes) throws Error
set the attribute flags of a GPT partition
- public bool part_set_gpt_guid (string device, int32 partnum, string guid) throws Error
set the GUID of a GPT partition
- public bool part_set_gpt_type (string device, int32 partnum, string guid) throws Error
set the type GUID of a GPT partition
- public bool part_set_mbr_id (string device, int32 partnum, int32 idbyte) throws Error
set the MBR type byte (ID byte) of a partition
- public bool part_set_name (string device, int32 partnum, string name) throws Error
set partition name
- public string part_to_dev (string partition) throws Error
convert partition name to device name
- public int32 part_to_partnum (string partition) throws Error
convert partition name to partition number
- public bool ping_daemon () throws Error
ping the guest daemon
- public uint8[] pread (string path, int32 count, int64 offset) throws Error
read part of a file
- public uint8[] pread_device (string device, int32 count, int64 offset) throws Error
read part of a device
- public bool pvchange_uuid (string device) throws Error
generate a new random UUID for a physical volume
- public bool pvchange_uuid_all () throws Error
generate new random UUIDs for all physical volumes
- public bool pvcreate (string device) throws Error
create an LVM physical volume
- public bool pvremove (string device) throws Error
remove an LVM physical volume
- public bool pvresize (string device) throws Error
resize an LVM physical volume
- public bool pvresize_size (string device, int64 size) throws Error
resize an LVM physical volume (with size)
- public string[] pvs () throws Error
list the LVM physical volumes (PVs)
- public PV[] pvs_full () throws Error
list the LVM physical volumes (PVs)
- public string pvuuid (string device) throws Error
get the UUID of a physical volume
- public int32 pwrite (string path, uint8[] content, int64 offset) throws Error
write to part of a file
- public int32 pwrite_device (string device, uint8[] content, int64 offset) throws Error
write to part of a device
- public uint8[] read_file (string path) throws Error
read a file
- public string[] read_lines (string path) throws Error
read file as lines
- public Dirent[] readdir (string dir) throws Error
read directories entries
- public string readlink (string path) throws Error
read the target of a symbolic link
- public string[] readlinklist (string path, string[] names) throws Error
readlink on multiple files
- public string realpath (string path) throws Error
canonicalized absolute pathname
- public bool remount (string mountpoint, Remount? optargs) throws Error
remount a filesystem with different options
- public bool remove_drive (string label) throws Error
remove a disk image
- public bool removexattr (string xattr, string path) throws Error
remove extended attribute of a file or directory
- public bool rename (string oldpath, string newpath) throws Error
rename a file on the same filesystem
- public bool resize2fs (string device) throws Error
resize an ext2, ext3 or ext4 filesystem
- public bool resize2fs_M (string device) throws Error
resize an ext2, ext3 or ext4 filesystem to the minimum size
- public bool resize2fs_size (string device, int64 size) throws Error
resize an ext2, ext3 or ext4 filesystem (with size)
- public bool rm (string path) throws Error
remove a file
- public bool rm_f (string path) throws Error
remove a file ignoring errors
- public bool rm_rf (string path) throws Error
remove a file or directory recursively
- public bool rmdir (string path) throws Error
remove a directory
- public bool rmmountpoint (string exemptpath) throws Error
remove a mountpoint
- public bool rsync (string src, string dest, Rsync? optargs) throws Error
synchronize the contents of two directories
- public bool rsync_in (string remote, string dest, RsyncIn? optargs) throws Error
synchronize host or remote filesystem with filesystem
- public bool rsync_out (string src, string remote, RsyncOut? optargs) throws Error
synchronize filesystem with host or remote filesystem
- public bool scrub_device (string device) throws Error
scrub (securely wipe) a device
- public bool scrub_file (string file) throws Error
scrub (securely wipe) a file
- public bool scrub_freespace (string dir) throws Error
scrub (securely wipe) free space
- public bool selinux_relabel (string specfile, string path, SelinuxRelabel? optargs) throws Error
relabel parts of the filesystem
- public bool set_append (string? append) throws Error
add options to kernel command line
- public bool set_attach_method (string backend) throws Error
set the backend
- public bool set_autosync (bool autosync) throws Error
set autosync mode
- public bool set_backend (string backend) throws Error
set the backend
- public bool set_backend_setting (string name, string val) throws Error
set a single per-backend settings string
- public bool set_backend_settings (string[] settings) throws Error
replace per-backend settings strings
- public bool set_cachedir (string? cachedir) throws Error
set the appliance cache directory
- public bool set_direct (bool direct) throws Error
enable or disable direct appliance mode
- public bool set_e2attrs (string file, string attrs, SetE2attrs? optargs) throws Error
set ext2 file attributes of a file
- public bool set_e2generation (string file, int64 generation) throws Error
set ext2 file generation of a file
- public bool set_e2label (string device, string label) throws Error
set the ext2/3/4 filesystem label
- public bool set_e2uuid (string device, string uuid) throws Error
set the ext2/3/4 filesystem UUID
- public bool set_hv (string hv) throws Error
set the hypervisor binary
- public bool set_identifier (string identifier) throws Error
set the handle identifier
- public bool set_label (string mountable, string label) throws Error
set filesystem label
- public bool set_libvirt_requested_credential (int32 index, uint8[] cred) throws Error
pass requested credential back to libvirt
- public bool set_libvirt_supported_credentials (string[] creds) throws Error
set libvirt credentials supported by calling program
- public bool set_memsize (int32 memsize) throws Error
set memory allocated to the hypervisor
- public bool set_network (bool network) throws Error
set enable network flag
- public bool set_path (string? searchpath) throws Error
set the search path
- public bool set_pgroup (bool pgroup) throws Error
set process group flag
- public bool set_program (string program) throws Error
set the program name
- public bool set_qemu (string? hv) throws Error
set the hypervisor binary (usually qemu)
- public bool set_recovery_proc (bool recoveryproc) throws Error
enable or disable the recovery process
- public bool set_selinux (bool selinux) throws Error
set SELinux enabled or disabled at appliance boot
- public bool set_smp (int32 smp) throws Error
set number of virtual CPUs in appliance
- public bool set_tmpdir (string? tmpdir) throws Error
set the temporary directory
- public bool set_trace (bool trace) throws Error
enable or disable command traces
- public bool set_uuid (string device, string uuid) throws Error
set the filesystem UUID
- public bool set_uuid_random (string device) throws Error
set a random UUID for the filesystem
- public bool set_verbose (bool verbose) throws Error
set verbose mode
- public bool setcon (string context) throws Error
set SELinux security context
- public bool setxattr (string xattr, string val, int32 vallen, string path) throws Error
set extended attribute of a file or directory
- public bool sfdisk (string device, int32 cyls, int32 heads, int32 sectors, string[] lines) throws Error
create partitions on a block device
- public bool sfdiskM (string device, string[] lines) throws Error
create partitions on a block device
- public bool sfdisk_N (string device, int32 partnum, int32 cyls, int32 heads, int32 sectors, string line) throws Error
modify a single partition on a block device
- public string sfdisk_disk_geometry (string device) throws Error
display the disk geometry from the partition table
- public string sfdisk_kernel_geometry (string device) throws Error
display the kernel geometry
- public string sfdisk_l (string device) throws Error
display the partition table
- public string sh (string command) throws Error
run a command via the shell
- public string[] sh_lines (string command) throws Error
run a command via the shell returning lines
- public bool shutdown () throws Error
shutdown the hypervisor
- public bool sleep (int32 secs) throws Error
sleep for some seconds
- public Stat stat (string path) throws Error
get file information
- public StatNS statns (string path) throws Error
get file information
- public StatVFS statvfs (string path) throws Error
get file system statistics
- public string[] strings (string path) throws Error
print the printable strings in a file
- public string[] strings_e (string encoding, string path) throws Error
print the printable strings in a file
- public bool swapoff_device (string device) throws Error
disable swap on device
- public bool swapoff_file (string file) throws Error
disable swap on file
- public bool swapoff_label (string label) throws Error
disable swap on labeled swap partition
- public bool swapoff_uuid (string uuid) throws Error
disable swap on swap partition by UUID
- public bool swapon_device (string device) throws Error
enable swap on device
- public bool swapon_file (string file) throws Error
enable swap on file
- public bool swapon_label (string label) throws Error
enable swap on labeled swap partition
- public bool swapon_uuid (string uuid) throws Error
enable swap on swap partition by UUID
- public bool sync () throws Error
sync disks, writes are flushed through to the disk image
- public bool syslinux (string device, Syslinux? optargs) throws Error
install the SYSLINUX bootloader
- public string[] tail (string path) throws Error
return last 10 lines of a file
- public string[] tail_n (int32 nrlines, string path) throws Error
return last N lines of a file
- public bool tar_in (string tarfile, string directory, TarIn? optargs, Cancellable? cancellable = null) throws Error
unpack tarfile to directory
- public bool tar_out (string directory, string tarfile, TarOut? optargs, Cancellable? cancellable = null) throws Error
pack directory into tarfile
- public bool tgz_in (string tarball, string directory, Cancellable? cancellable = null) throws Error
unpack compressed tarball to directory
- public bool tgz_out (string directory, string tarball, Cancellable? cancellable = null) throws Error
pack directory into compressed tarball
- public bool touch (string path) throws Error
update file timestamps or create a new file
- public bool truncate (string path) throws Error
truncate a file to zero size
- public bool truncate_size (string path, int64 size) throws Error
truncate a file to a particular size
- public bool tune2fs (string device, Tune2FS? optargs) throws Error
adjust ext2/ext3/ext4 filesystem parameters
- public HashTable<string,string> tune2fs_l (string device) throws Error
get ext2/ext3/ext4 superblock details
- public bool txz_in (string tarball, string directory, Cancellable? cancellable = null) throws Error
unpack compressed tarball to directory
- public bool txz_out (string directory, string tarball, Cancellable? cancellable = null) throws Error
pack directory into compressed tarball
- public int32 umask (int32 mask) throws Error
set file mode creation mask (umask)
- public bool umount (string pathordevice, Umount? optargs) throws Error
unmount a filesystem
- public bool umount_all () throws Error
unmount all filesystems
- public bool umount_local (UmountLocal? optargs) throws Error
unmount a locally mounted filesystem
- public bool upload (string filename, string remotefilename, Cancellable? cancellable = null) throws Error
upload a file from the local machine
- public bool upload_offset (string filename, string remotefilename, int64 offset, Cancellable? cancellable = null) throws Error
upload a file from the local machine with offset
- public bool user_cancel () throws Error
cancel the current upload or download operation
- public bool utimens (string path, int64 atsecs, int64 atnsecs, int64 mtsecs, int64 mtnsecs) throws Error
set timestamp of a file with nanosecond precision
- public UTSName utsname () throws Error
appliance kernel version
- public Version version () throws Error
get the library version number
- public string vfs_label (string mountable) throws Error
get the filesystem label
- public int64 vfs_minimum_size (string mountable) throws Error
get minimum filesystem size
- public string vfs_type (string mountable) throws Error
get the Linux VFS type corresponding to a mounted device
- public string vfs_uuid (string mountable) throws Error
get the filesystem UUID
- public bool vg_activate (bool activate, string[] volgroups) throws Error
activate or deactivate some volume groups
- public bool vg_activate_all (bool activate) throws Error
activate or deactivate all volume groups
- public bool vgchange_uuid (string vg) throws Error
generate a new random UUID for a volume group
- public bool vgchange_uuid_all () throws Error
generate new random UUIDs for all volume groups
- public bool vgcreate (string volgroup, string[] physvols) throws Error
create an LVM volume group
- public string[] vglvuuids (string vgname) throws Error
get the LV UUIDs of all LVs in the volume group
- public uint8[] vgmeta (string vgname) throws Error
get volume group metadata
- public string[] vgpvuuids (string vgname) throws Error
get the PV UUIDs containing the volume group
- public bool vgremove (string vgname) throws Error
remove an LVM volume group
- public bool vgrename (string volgroup, string newvolgroup) throws Error
rename an LVM volume group
- public string[] vgs () throws Error
list the LVM volume groups (VGs)
- public VG[] vgs_full () throws Error
list the LVM volume groups (VGs)
- public bool vgscan () throws Error
rescan for LVM physical volumes, volume groups and logical volumes
- public string vguuid (string vgname) throws Error
get the UUID of a volume group
- public bool wait_ready () throws Error
wait until the hypervisor launches (no op)
- public int32 wc_c (string path) throws Error
count characters in a file
- public int32 wc_l (string path) throws Error
count lines in a file
- public int32 wc_w (string path) throws Error
count words in a file
- public bool wipefs (string device) throws Error
wipe a filesystem signature from a device
- public bool write (string path, uint8[] content) throws Error
create a new file
- public bool write_append (string path, uint8[] content) throws Error
append content to end of file
- public bool write_file (string path, string content, int32 size) throws Error
create a file
- public bool xfs_admin (string device, XfsAdmin? optargs) throws Error
change parameters of an XFS filesystem
- public bool xfs_growfs (string path, XfsGrowfs? optargs) throws Error
expand an existing XFS filesystem
- public XFSInfo xfs_info (string pathordevice) throws Error
get geometry of XFS filesystem
- public int32 xfs_repair (string device, XfsRepair? optargs) throws Error
repair an XFS filesystem
- public bool yara_destroy () throws Error
destroy previously loaded yara rules
- public bool yara_load (string filename, Cancellable? cancellable = null) throws Error
load yara rules within libguestfs
- public YaraDetection[] yara_scan (string path, Cancellable? cancellable = null) throws Error
scan a file with the loaded yara rules
- public string[] zegrep (string regex, string path) throws Error
return lines matching a pattern
- public string[] zegrepi (string regex, string path) throws Error
return lines matching a pattern
- public bool zero (string device) throws Error
write zeroes to the device
- public bool zero_device (string device) throws Error
write zeroes to an entire device
- public bool zero_free_space (string directory) throws Error
zero free space in a filesystem
- public bool zerofree (string device) throws Error
zero unused inodes and disk blocks on ext2/3 filesystem
- public string[] zfgrep (string pattern, string path) throws Error
return lines matching a pattern
- public string[] zfgrepi (string pattern, string path) throws Error
return lines matching a pattern
- public string zfile (string meth, string path) throws Error
determine file type inside a compressed file
- public string[] zgrep (string regex, string path) throws Error
return lines matching a pattern
- public string[] zgrepi (string regex, string path) throws Error
return lines matching a pattern
Signals:
- public signal void appliance (SessionEventParams @params)
See "SETTING CALLBACKS TO HANDLE EVENTS" in guestfs(3) for more details about this event.
- public signal void close (SessionEventParams @params)
See "SETTING CALLBACKS TO HANDLE EVENTS" in guestfs(3) for more details about this event.
- public signal void enter (SessionEventParams @params)
See "SETTING CALLBACKS TO HANDLE EVENTS" in guestfs(3) for more details about this event.
- public signal void launch_done (SessionEventParams object)
- public signal void library (SessionEventParams @params)
See "SETTING CALLBACKS TO HANDLE EVENTS" in guestfs(3) for more details about this event.
- public signal void libvirt_auth (SessionEventParams object)
- public signal void progress (SessionEventParams @params)
See "SETTING CALLBACKS TO HANDLE EVENTS" in guestfs(3) for more details about this event.
- public signal void subprocess_quit (SessionEventParams object)
- public signal void trace (SessionEventParams @params)
See "SETTING CALLBACKS TO HANDLE EVENTS" in guestfs(3) for more details about this event.
- public signal void warning (SessionEventParams @params)
See "SETTING CALLBACKS TO HANDLE EVENTS" in guestfs(3) for more details about this event.
Inherited Members:
All known members inherited from class GLib.Object