class guestfs :?environment:bool -> ?close_on_exit:bool -> unit ->object..end
method close : unit -> unitSee Guestfs.close
method set_event_callback : event_callback -> event list -> event_handle
method delete_event_callback : event_handle -> unit
method last_errno : unit -> int
method ocaml_handle : tReturn the Guestfs.t handle
method acl_delete_def_file : string -> unitdelete the default POSIX ACL of a directory
This function depends on the feature "acl". See also Guestfs.guestfs.feature_available.
method acl_get_file : string -> string -> stringget the POSIX ACL attached to a file
This function depends on the feature "acl". See also Guestfs.guestfs.feature_available.
method acl_set_file : string -> string -> string -> unitset the POSIX ACL attached to a file
This function depends on the feature "acl". See also Guestfs.guestfs.feature_available.
method add_cdrom : string -> unit
method add_domain : ?libvirturi:string ->
?readonly:bool ->
?iface:string ->
?live:bool ->
?allowuuid:bool ->
?readonlydisk:string ->
?cachemode:string -> ?discard:string -> ?copyonread:bool -> string -> intadd the disk(s) from a named libvirt domain
method add_drive : ?readonly:bool ->
?format:string ->
?iface:string ->
?name:string ->
?label:string ->
?protocol:string ->
?server:string array ->
?username:string ->
?secret:string ->
?cachemode:string ->
?discard:string -> ?copyonread:bool -> ?blocksize:int -> string -> unitadd an image to examine or modify
method add_drive_opts : ?readonly:bool ->
?format:string ->
?iface:string ->
?name:string ->
?label:string ->
?protocol:string ->
?server:string array ->
?username:string ->
?secret:string ->
?cachemode:string ->
?discard:string -> ?copyonread:bool -> ?blocksize:int -> string -> unitalias for Guestfs.guestfs.add_drive
method add_drive_ro : string -> unitadd a drive in snapshot mode (read-only)
method add_drive_ro_with_if : string -> string -> unitGuestfs.guestfs.add_drive insteadadd a drive read-only specifying the QEMU block emulation to use
method add_drive_scratch : ?name:string -> ?label:string -> ?blocksize:int -> int64 -> unitadd a temporary scratch drive
method add_drive_with_if : string -> string -> unitGuestfs.guestfs.add_drive insteadadd a drive specifying the QEMU block emulation to use
method add_libvirt_dom : ?readonly:bool ->
?iface:string ->
?live:bool ->
?readonlydisk:string ->
?cachemode:string -> ?discard:string -> ?copyonread:bool -> int64 -> intadd the disk(s) from a libvirt domain
method aug_clear : string -> unitclear Augeas path
method aug_close : unit -> unitclose the current Augeas handle
method aug_defnode : string -> string -> string -> int_booldefine an Augeas node
method aug_defvar : string -> string option -> intdefine an Augeas variable
method aug_get : string -> stringlook up the value of an Augeas path
method aug_init : string -> int -> unitcreate a new Augeas handle
method aug_insert : string -> string -> bool -> unitinsert a sibling Augeas node
method aug_label : string -> stringreturn the label from an Augeas path expression
method aug_load : unit -> unitload files into the tree
method aug_ls : string -> string arraylist Augeas nodes under augpath
method aug_match : string -> string arrayreturn Augeas nodes which match augpath
method aug_mv : string -> string -> unitmove Augeas node
method aug_rm : string -> intremove an Augeas path
method aug_save : unit -> unitwrite all pending Augeas changes to disk
method aug_set : string -> string -> unitset Augeas path to value
method aug_setm : string -> string option -> string -> intset multiple Augeas nodes
method aug_transform : ?remove:bool -> string -> string -> unitadd/remove an Augeas lens transformation
method available : string array -> unittest availability of some parts of the API
method available_all_groups : unit -> string arrayreturn a list of all optional groups
method base64_in : string -> string -> unitupload base64-encoded data to file
method base64_out : string -> string -> unitdownload file and encode as base64
method blkdiscard : string -> unitdiscard all blocks on a device
This function depends on the feature "blkdiscard". See also Guestfs.guestfs.feature_available.
method blkdiscardzeroes : string -> boolreturn true if discarded blocks are read as zeroes
This function depends on the feature "blkdiscardzeroes". See also Guestfs.guestfs.feature_available.
method blkid : string -> (string * string) listprint block device attributes
method blockdev_flushbufs : string -> unitflush device buffers
method blockdev_getbsz : string -> intget blocksize of block device
method blockdev_getro : string -> boolis block device set to read-only
method blockdev_getsize64 : string -> int64get total size of device in bytes
method blockdev_getss : string -> intget sectorsize of block device
method blockdev_getsz : string -> int64get total size of device in 512-byte sectors
method blockdev_rereadpt : string -> unitreread partition table
method blockdev_setbsz : string -> int -> unitset blocksize of block device
method blockdev_setra : string -> int -> unitset readahead
method blockdev_setro : string -> unitset block device to read-only
method blockdev_setrw : string -> unitset block device to read-write
method btrfs_balance_cancel : string -> unitcancel a running or paused balance
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_balance_pause : string -> unitpause a running balance
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_balance_resume : string -> unitresume a paused balance
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_balance_status : string -> btrfsbalanceshow the status of a running or paused balance
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_device_add : string array -> string -> unitadd devices to a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_device_delete : string array -> string -> unitremove devices from a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_filesystem_balance : string -> unitbalance a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_filesystem_defragment : ?flush:bool -> ?compress:string -> string -> unitdefragment a file or directory
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_filesystem_resize : ?size:int64 -> string -> unitresize a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_filesystem_show : string -> string arraylist devices for btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_filesystem_sync : string -> unitsync a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_fsck : ?superblock:int64 -> ?repair:bool -> string -> unitcheck a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_image : ?compresslevel:int -> string array -> string -> unitcreate an image of a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_qgroup_assign : string -> string -> string -> unitadd a qgroup to a parent qgroup
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_qgroup_create : string -> string -> unitcreate a subvolume quota group
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_qgroup_destroy : string -> string -> unitdestroy a subvolume quota group
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_qgroup_limit : string -> int64 -> unitlimit the size of a subvolume
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_qgroup_remove : string -> string -> string -> unitremove a qgroup from its parent qgroup
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_qgroup_show : string -> btrfsqgroup arrayshow subvolume quota groups
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_quota_enable : string -> bool -> unitenable or disable subvolume quota support
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_quota_rescan : string -> unittrash all qgroup numbers and scan the metadata again with the current config
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_replace : string -> string -> string -> unitreplace a btrfs managed device with another device
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_rescue_chunk_recover : string -> unitrecover the chunk tree of btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_rescue_super_recover : string -> unitrecover bad superblocks from good copies
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_scrub_cancel : string -> unitcancel a running scrub
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_scrub_resume : string -> unitresume a previously canceled or interrupted scrub
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_scrub_start : string -> unitread all data from all disks and verify checksums
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_scrub_status : string -> btrfsscrubshow status of running or finished scrub
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_set_seeding : string -> bool -> unitenable or disable the seeding feature of device
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_create : ?qgroupid:string -> string -> unitcreate a btrfs subvolume
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_create_opts : ?qgroupid:string -> string -> unitalias for Guestfs.guestfs.btrfs_subvolume_create
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_delete : string -> unitdelete a btrfs subvolume or snapshot
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_get_default : string -> int64get the default subvolume or snapshot of a filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_list : string -> btrfssubvolume arraylist btrfs snapshots and subvolumes
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_set_default : int64 -> string -> unitset default btrfs subvolume
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_show : string -> (string * string) listreturn detailed information of the subvolume
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_snapshot : ?ro:bool -> ?qgroupid:string -> string -> string -> unitcreate a btrfs snapshot
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfs_subvolume_snapshot_opts : ?ro:bool -> ?qgroupid:string -> string -> string -> unitalias for Guestfs.guestfs.btrfs_subvolume_snapshot
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfstune_enable_extended_inode_refs : string -> unitenable extended inode refs
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfstune_enable_skinny_metadata_extent_refs : string -> unitenable skinny metadata extent refs
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method btrfstune_seeding : string -> bool -> unitenable or disable seeding of a btrfs device
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method c_pointer : unit -> int64return the C pointer to the guestfs_h handle
method canonical_device_name : string -> stringreturn canonical device name
method cap_get_file : string -> stringget the Linux capabilities attached to a file
This function depends on the feature "linuxcaps". See also Guestfs.guestfs.feature_available.
method cap_set_file : string -> string -> unitset the Linux capabilities attached to a file
This function depends on the feature "linuxcaps". See also Guestfs.guestfs.feature_available.
method case_sensitive_path : string -> stringreturn true path on case-insensitive filesystem
method cat : string -> stringlist the contents of a file
method checksum : string -> string -> stringcompute MD5, SHAx or CRC checksum of file
method checksum_device : string -> string -> stringcompute MD5, SHAx or CRC checksum of the contents of a device
method checksums_out : string -> string -> string -> unitcompute MD5, SHAx or CRC checksum of files in a directory
method chmod : int -> string -> unitchange file mode
method chown : int -> int -> string -> unitchange file owner and group
method clear_backend_setting : string -> intremove a single per-backend settings string
method command : string array -> stringrun a command from the guest filesystem
method command_lines : string array -> string arrayrun a command, returning lines
method compress_device_out : ?level:int -> string -> string -> string -> unitoutput compressed device
method compress_out : ?level:int -> string -> string -> string -> unitoutput compressed file
method config : string -> string option -> unitadd hypervisor parameters
method copy_attributes : ?all:bool ->
?mode:bool ->
?xattributes:bool -> ?ownership:bool -> string -> string -> unitcopy the attributes of a path (file/directory) to another
method copy_device_to_device : ?srcoffset:int64 ->
?destoffset:int64 ->
?size:int64 -> ?sparse:bool -> ?append:bool -> string -> string -> unitcopy from source device to destination device
method copy_device_to_file : ?srcoffset:int64 ->
?destoffset:int64 ->
?size:int64 -> ?sparse:bool -> ?append:bool -> string -> string -> unitcopy from source device to destination file
method copy_file_to_device : ?srcoffset:int64 ->
?destoffset:int64 ->
?size:int64 -> ?sparse:bool -> ?append:bool -> string -> string -> unitcopy from source file to destination device
method copy_file_to_file : ?srcoffset:int64 ->
?destoffset:int64 ->
?size:int64 -> ?sparse:bool -> ?append:bool -> string -> string -> unitcopy from source file to destination file
method copy_in : string -> string -> unitcopy local files or directories into an image
method copy_out : string -> string -> unitcopy remote files or directories out of an image
method copy_size : string -> string -> int64 -> unitGuestfs.guestfs.copy_device_to_device insteadcopy size bytes from source to destination using dd
method cp : string -> string -> unitcopy a file
method cp_a : string -> string -> unitcopy a file or directory recursively
method cp_r : string -> string -> unitcopy a file or directory recursively
method cpio_out : ?format:string -> string -> string -> unitpack directory into cpio file
method cryptsetup_close : string -> unitclose an encrypted device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method cryptsetup_open : ?readonly:bool -> ?crypttype:string -> string -> string -> string -> unitopen an encrypted block device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method dd : string -> string -> unitGuestfs.guestfs.copy_device_to_device insteadcopy from source to destination using dd
method device_index : string -> intconvert device to index
method df : unit -> stringreport file system disk space usage
method df_h : unit -> stringreport file system disk space usage (human readable)
method disk_create : ?backingfile:string ->
?backingformat:string ->
?preallocation:string ->
?compat:string -> ?clustersize:int -> string -> string -> int64 -> unitcreate a blank disk image
method disk_format : string -> stringdetect the disk format of a disk image
method disk_has_backing_file : string -> boolreturn whether disk has a backing file
method disk_virtual_size : string -> int64return virtual size of a disk
method dmesg : unit -> stringreturn kernel messages
method download : string -> string -> unitdownload a file to the local machine
method download_blocks : ?unallocated:bool -> string -> int64 -> int64 -> string -> unitdownload the given data units from the disk
This function depends on the feature "sleuthkit". See also Guestfs.guestfs.feature_available.
method download_inode : string -> int64 -> string -> unitdownload a file to the local machine given its inode
This function depends on the feature "sleuthkit". See also Guestfs.guestfs.feature_available.
method download_offset : string -> string -> int64 -> int64 -> unitdownload a file to the local machine with offset and size
method drop_caches : int -> unitdrop kernel page cache, dentries and inodes
method du : string -> int64estimate file space usage
method e2fsck : ?correct:bool -> ?forceall:bool -> string -> unitcheck an ext2/ext3 filesystem
method e2fsck_f : string -> unit
method echo_daemon : string array -> stringecho arguments back to the client
method egrep : string -> string -> string array
method egrepi : string -> string -> string array
method equal : string -> string -> booltest if two files have equal contents
method exists : string -> booltest if file or directory exists
method extlinux : string -> unitinstall the SYSLINUX bootloader on an ext2/3/4 or btrfs filesystem
This function depends on the feature "extlinux". See also Guestfs.guestfs.feature_available.
method f2fs_expand : string -> unitexpand a f2fs filesystem
This function depends on the feature "f2fs". See also Guestfs.guestfs.feature_available.
method fallocate : string -> int -> unitGuestfs.guestfs.fallocate64 insteadpreallocate a file in the guest filesystem
method fallocate64 : string -> int64 -> unitpreallocate a file in the guest filesystem
method feature_available : string array -> booltest availability of some parts of the API
method fgrep : string -> string -> string array
method fgrepi : string -> string -> string array
method file : string -> stringdetermine file type
method file_architecture : string -> stringdetect the architecture of a binary file
method filesize : string -> int64return the size of the file in bytes
method filesystem_available : string -> boolcheck if filesystem is available
method filesystem_walk : string -> tsk_dirent arraywalk through the filesystem content
This function depends on the feature "libtsk". See also Guestfs.guestfs.feature_available.
method fill : int -> int -> string -> unitfill a file with octets
method fill_dir : string -> int -> unitfill a directory with empty files
method fill_pattern : string -> int -> string -> unitfill a file with a repeating pattern of bytes
method find : string -> string arrayfind all files and directories
method find0 : string -> string -> unitfind all files and directories, returning NUL-separated list
method find_inode : string -> int64 -> tsk_dirent arraysearch the entries associated to the given inode
This function depends on the feature "libtsk". See also Guestfs.guestfs.feature_available.
method findfs_label : string -> stringfind a filesystem by label
method findfs_uuid : string -> stringfind a filesystem by UUID
method fsck : string -> string -> intrun the filesystem checker
method fstrim : ?offset:int64 -> ?length:int64 -> ?minimumfreeextent:int64 -> string -> unittrim free space in a filesystem
This function depends on the feature "fstrim". See also Guestfs.guestfs.feature_available.
method get_append : unit -> string optionget the additional kernel options
method get_attach_method : unit -> string
method get_autosync : unit -> boolget autosync mode
method get_backend : unit -> stringget the backend
method get_backend_setting : string -> stringget a single per-backend settings string
method get_backend_settings : unit -> string arrayget per-backend settings
method get_cachedir : unit -> stringget the appliance cache directory
method get_direct : unit -> boolget direct appliance mode flag
method get_e2attrs : string -> stringget ext2 file attributes of a file
method get_e2generation : string -> int64get ext2 file generation of a file
method get_e2label : string -> string
method get_e2uuid : string -> string
method get_hv : unit -> stringget the hypervisor binary
method get_identifier : unit -> stringget the handle identifier
method get_libvirt_requested_credential_challenge : int -> stringchallenge of i'th requested credential
method get_libvirt_requested_credential_defresult : int -> stringdefault result of i'th requested credential
method get_libvirt_requested_credential_prompt : int -> stringprompt of i'th requested credential
method get_libvirt_requested_credentials : unit -> string arrayget list of credentials requested by libvirt
method get_memsize : unit -> intget memory allocated to the hypervisor
method get_network : unit -> boolget enable network flag
method get_path : unit -> stringget the search path
method get_pgroup : unit -> boolget process group flag
method get_pid : unit -> intget PID of hypervisor
method get_program : unit -> stringget the program name
method get_qemu : unit -> string
method get_recovery_proc : unit -> boolget recovery process enabled flag
method get_selinux : unit -> bool
method get_smp : unit -> intget number of virtual CPUs in appliance
method get_sockdir : unit -> stringget the temporary directory for sockets
method get_state : unit -> intget the current state
method get_tmpdir : unit -> stringget the temporary directory
method get_trace : unit -> boolget command trace enabled flag
method get_umask : unit -> intget the current umask
method get_verbose : unit -> boolget verbose mode
method getcon : unit -> stringGuestfs.guestfs.selinux_relabel insteadget SELinux security context
This function depends on the feature "selinux". See also Guestfs.guestfs.feature_available.
method getxattr : string -> string -> stringget a single extended attribute
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method getxattrs : string -> xattr arraylist extended attributes of a file or directory
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method glob_expand : ?directoryslash:bool -> string -> string arrayexpand a wildcard path
method glob_expand_opts : ?directoryslash:bool -> string -> string arrayalias for Guestfs.guestfs.glob_expand
method grep : ?extended:bool ->
?fixed:bool ->
?insensitive:bool -> ?compressed:bool -> string -> string -> string arrayreturn lines matching a pattern
method grep_opts : ?extended:bool ->
?fixed:bool ->
?insensitive:bool -> ?compressed:bool -> string -> string -> string arrayalias for Guestfs.guestfs.grep
method grepi : string -> string -> string array
method grub_install : string -> string -> unitinstall GRUB 1
This function depends on the feature "grub". See also Guestfs.guestfs.feature_available.
method head : string -> string arrayreturn first 10 lines of a file
method head_n : int -> string -> string arrayreturn first N lines of a file
method hexdump : string -> stringdump a file in hexadecimal
method hivex_close : unit -> unitclose the current hivex handle
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_commit : string option -> unitcommit (write) changes back to the hive
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_add_child : int64 -> string -> int64add a child node
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_children : int64 -> hivex_node arrayreturn list of nodes which are subkeys of node
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_delete_child : int64 -> unitdelete a node (recursively)
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_get_child : int64 -> string -> int64return the named child of node
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_get_value : int64 -> string -> int64return the named value
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_name : int64 -> stringreturn the name of the node
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_parent : int64 -> int64return the parent of node
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_set_value : int64 -> string -> int64 -> string -> unitset or replace a single value in a node
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_node_values : int64 -> hivex_value arrayreturn list of values attached to node
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_open : ?verbose:bool -> ?debug:bool -> ?write:bool -> ?unsafe:bool -> string -> unitopen a Windows Registry hive file
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_root : unit -> int64return the root node of the hive
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_value_key : int64 -> stringreturn the key field from the (key, datatype, data) tuple
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_value_string : int64 -> stringreturn the data field as a UTF-8 string
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_value_type : int64 -> int64return the data type from the (key, datatype, data) tuple
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_value_utf8 : int64 -> stringGuestfs.guestfs.hivex_value_string insteadreturn the data field as a UTF-8 string
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method hivex_value_value : int64 -> stringreturn the data field from the (key, datatype, data) tuple
This function depends on the feature "hivex". See also Guestfs.guestfs.feature_available.
method initrd_cat : string -> string -> stringlist the contents of a single file in an initrd
method initrd_list : string -> string arraylist files in an initrd
method inotify_add_watch : string -> int -> int64add an inotify watch
This function depends on the feature "inotify". See also Guestfs.guestfs.feature_available.
method inotify_close : unit -> unitclose the inotify handle
This function depends on the feature "inotify". See also Guestfs.guestfs.feature_available.
method inotify_files : unit -> string arrayreturn list of watched files that had events
This function depends on the feature "inotify". See also Guestfs.guestfs.feature_available.
method inotify_init : int -> unitcreate an inotify handle
This function depends on the feature "inotify". See also Guestfs.guestfs.feature_available.
method inotify_read : unit -> inotify_event arrayreturn list of inotify events
This function depends on the feature "inotify". See also Guestfs.guestfs.feature_available.
method inotify_rm_watch : int -> unitremove an inotify watch
This function depends on the feature "inotify". See also Guestfs.guestfs.feature_available.
method inspect_get_arch : string -> stringget architecture of inspected operating system
method inspect_get_distro : string -> stringget distro of inspected operating system
method inspect_get_drive_mappings : string -> (string * string) listget drive letter mappings
method inspect_get_filesystems : string -> string arrayget filesystems associated with inspected operating system
method inspect_get_format : string -> stringget format of inspected operating system
method inspect_get_hostname : string -> stringget hostname of the operating system
method inspect_get_icon : ?favicon:bool -> ?highquality:bool -> string -> stringget the icon corresponding to this operating system
method inspect_get_major_version : string -> intget major version of inspected operating system
method inspect_get_minor_version : string -> intget minor version of inspected operating system
method inspect_get_mountpoints : string -> (string * string) listget mountpoints of inspected operating system
method inspect_get_osinfo : string -> stringget a possible osinfo short ID corresponding to this operating system
method inspect_get_package_format : string -> stringget package format used by the operating system
method inspect_get_package_management : string -> stringget package management tool used by the operating system
method inspect_get_product_name : string -> stringget product name of inspected operating system
method inspect_get_product_variant : string -> stringget product variant of inspected operating system
method inspect_get_roots : unit -> string arrayreturn list of operating systems found by last inspection
method inspect_get_type : string -> stringget type of inspected operating system
method inspect_get_windows_current_control_set : string -> stringget Windows CurrentControlSet of inspected operating system
method inspect_get_windows_software_hive : string -> stringget the path of the Windows software hive
method inspect_get_windows_system_hive : string -> stringget the path of the Windows system hive
method inspect_get_windows_systemroot : string -> stringget Windows systemroot of inspected operating system
method inspect_is_live : string -> boolget live flag for install disk
method inspect_is_multipart : string -> boolget multipart flag for install disk
method inspect_is_netinst : string -> boolget netinst (network installer) flag for install disk
method inspect_list_applications : string -> application arrayGuestfs.guestfs.inspect_list_applications2 insteadget list of applications installed in the operating system
method inspect_list_applications2 : string -> application2 arrayget list of applications installed in the operating system
method inspect_os : unit -> string arrayinspect disk and return list of operating systems found
method is_blockdev : ?followsymlinks:bool -> string -> booltest if block device
method is_blockdev_opts : ?followsymlinks:bool -> string -> boolalias for Guestfs.guestfs.is_blockdev
method is_busy : unit -> boolis busy processing a command
method is_chardev : ?followsymlinks:bool -> string -> booltest if character device
method is_chardev_opts : ?followsymlinks:bool -> string -> boolalias for Guestfs.guestfs.is_chardev
method is_config : unit -> boolis in configuration state
method is_dir : ?followsymlinks:bool -> string -> booltest if a directory
method is_dir_opts : ?followsymlinks:bool -> string -> boolalias for Guestfs.guestfs.is_dir
method is_fifo : ?followsymlinks:bool -> string -> booltest if FIFO (named pipe)
method is_fifo_opts : ?followsymlinks:bool -> string -> boolalias for Guestfs.guestfs.is_fifo
method is_file : ?followsymlinks:bool -> string -> booltest if a regular file
method is_file_opts : ?followsymlinks:bool -> string -> boolalias for Guestfs.guestfs.is_file
method is_launching : unit -> boolis launching subprocess
method is_lv : string -> booltest if mountable is a logical volume
method is_ready : unit -> boolis ready to accept commands
method is_socket : ?followsymlinks:bool -> string -> booltest if socket
method is_socket_opts : ?followsymlinks:bool -> string -> boolalias for Guestfs.guestfs.is_socket
method is_symlink : string -> booltest if symbolic link
method is_whole_device : string -> booltest if a device is a whole device
method is_zero : string -> booltest if a file contains all zero bytes
method is_zero_device : string -> booltest if a device contains all zero bytes
method isoinfo : string -> isoinfoget ISO information from primary volume descriptor of ISO file
method isoinfo_device : string -> isoinfoget ISO information from primary volume descriptor of device
method journal_close : unit -> unitclose the systemd journal
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method journal_get : unit -> xattr arrayread the current journal entry
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method journal_get_data_threshold : unit -> int64get the data threshold for reading journal entries
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method journal_get_realtime_usec : unit -> int64get the timestamp of the current journal entry
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method journal_next : unit -> boolmove to the next journal entry
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method journal_open : string -> unitopen the systemd journal
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method journal_set_data_threshold : int64 -> unitset the data threshold for reading journal entries
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method journal_skip : int64 -> int64skip forwards or backwards in the journal
This function depends on the feature "journal". See also Guestfs.guestfs.feature_available.
method kill_subprocess : unit -> unit
method launch : unit -> unitlaunch the backend
method lchown : int -> int -> string -> unitchange file owner and group
method ldmtool_create_all : unit -> unitscan and create Windows dynamic disk volumes
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_diskgroup_disks : string -> string arrayreturn the disks in a Windows dynamic disk group
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_diskgroup_name : string -> stringreturn the name of a Windows dynamic disk group
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_diskgroup_volumes : string -> string arrayreturn the volumes in a Windows dynamic disk group
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_remove_all : unit -> unitremove all Windows dynamic disk volumes
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_scan : unit -> string arrayscan for Windows dynamic disks
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_scan_devices : string array -> string arrayscan for Windows dynamic disks
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_volume_hint : string -> string -> stringreturn the hint field of a Windows dynamic disk volume
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_volume_partitions : string -> string -> string arrayreturn the partitions in a Windows dynamic disk volume
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method ldmtool_volume_type : string -> string -> stringreturn the type of a Windows dynamic disk volume
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method lgetxattr : string -> string -> stringget a single extended attribute
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method lgetxattrs : string -> xattr arraylist extended attributes of a file or directory
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method list_devices : unit -> string arraylist the block devices
method list_disk_labels : unit -> (string * string) listmapping of disk labels to devices
method list_dm_devices : unit -> string arraylist device mapper devices
method list_filesystems : unit -> (string * string) listlist filesystems
method list_ldm_partitions : unit -> string arraylist all Windows dynamic disk partitions
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method list_ldm_volumes : unit -> string arraylist all Windows dynamic disk volumes
This function depends on the feature "ldm". See also Guestfs.guestfs.feature_available.
method list_md_devices : unit -> string arraylist Linux md (RAID) devices
method list_partitions : unit -> string arraylist the partitions
method ll : string -> stringlist the files in a directory (long format)
method llz : string -> stringGuestfs.guestfs.lgetxattrs insteadlist the files in a directory (long format with SELinux contexts)
method ln : string -> string -> unitcreate a hard link
method ln_f : string -> string -> unitcreate a hard link
method ln_s : string -> string -> unitcreate a symbolic link
method ln_sf : string -> string -> unitcreate a symbolic link
method lremovexattr : string -> string -> unitremove extended attribute of a file or directory
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method ls : string -> string arraylist the files in a directory
method ls0 : string -> string -> unitget list of files in a directory
method lsetxattr : string -> string -> int -> string -> unitset extended attribute of a file or directory
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method lstat : string -> stat
method lstatlist : string -> string array -> stat array
method lstatns : string -> statnsget file information for a symbolic link
method lstatnslist : string -> string array -> statns arraylstat on multiple files
method luks_add_key : string -> string -> string -> int -> unitadd a key on a LUKS encrypted device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method luks_close : string -> unitGuestfs.guestfs.cryptsetup_close insteadclose a LUKS device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method luks_format : string -> string -> int -> unitformat a block device as a LUKS encrypted device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method luks_format_cipher : string -> string -> int -> string -> unitformat a block device as a LUKS encrypted device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method luks_kill_slot : string -> string -> int -> unitremove a key from a LUKS encrypted device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method luks_open : string -> string -> string -> unitGuestfs.guestfs.cryptsetup_open insteadopen a LUKS-encrypted block device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method luks_open_ro : string -> string -> string -> unitGuestfs.guestfs.cryptsetup_open insteadopen a LUKS-encrypted block device read-only
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method luks_uuid : string -> stringget the UUID of a LUKS device
This function depends on the feature "luks". See also Guestfs.guestfs.feature_available.
method lvcreate : string -> string -> int -> unitcreate an LVM logical volume
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvcreate_free : string -> string -> int -> unitcreate an LVM logical volume in % remaining free space
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvm_canonical_lv_name : string -> stringget canonical name of an LV
method lvm_clear_filter : unit -> unitclear LVM device filter
method lvm_remove_all : unit -> unitremove all LVM LVs, VGs and PVs
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvm_scan : bool -> unitscan for LVM physical volumes, volume groups and logical volumes
method lvm_set_filter : string array -> unitset LVM device filter
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvremove : string -> unitremove an LVM logical volume
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvrename : string -> string -> unitrename an LVM logical volume
method lvresize : string -> int -> unitresize an LVM logical volume
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvresize_free : string -> int -> unitexpand an LV to fill free space
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvs : unit -> string arraylist the LVM logical volumes (LVs)
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvs_full : unit -> lvm_lv arraylist the LVM logical volumes (LVs)
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method lvuuid : string -> stringget the UUID of a logical volume
method lxattrlist : string -> string array -> xattr arraylgetxattr on multiple files
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method max_disks : unit -> intmaximum number of disks that may be added
method md_create : ?missingbitmap:int64 ->
?nrdevices:int ->
?spare:int -> ?chunk:int64 -> ?level:string -> string -> string array -> unitcreate a Linux md (RAID) device
This function depends on the feature "mdadm". See also Guestfs.guestfs.feature_available.
method md_detail : string -> (string * string) listobtain metadata for an MD device
This function depends on the feature "mdadm". See also Guestfs.guestfs.feature_available.
method md_stat : string -> mdstat arrayget underlying devices from an MD device
This function depends on the feature "mdadm". See also Guestfs.guestfs.feature_available.
method md_stop : string -> unitstop a Linux md (RAID) device
This function depends on the feature "mdadm". See also Guestfs.guestfs.feature_available.
method mkdir : string -> unitcreate a directory
method mkdir_mode : string -> int -> unitcreate a directory with a particular mode
method mkdir_p : string -> unitcreate a directory and parents
method mkdtemp : string -> stringcreate a temporary directory
method mke2fs : ?blockscount:int64 ->
?blocksize:int64 ->
?fragsize:int64 ->
?blockspergroup:int64 ->
?numberofgroups:int64 ->
?bytesperinode:int64 ->
?inodesize:int64 ->
?journalsize:int64 ->
?numberofinodes:int64 ->
?stridesize:int64 ->
?stripewidth:int64 ->
?maxonlineresize:int64 ->
?reservedblockspercentage:int ->
?mmpupdateinterval:int ->
?journaldevice:string ->
?label:string ->
?lastmounteddir:string ->
?creatoros:string ->
?fstype:string ->
?usagetype:string ->
?uuid:string ->
?forcecreate:bool ->
?writesbandgrouponly:bool ->
?lazyitableinit:bool ->
?lazyjournalinit:bool ->
?testfs:bool ->
?discard:bool ->
?quotatype:bool ->
?extent:bool ->
?filetype:bool ->
?flexbg:bool ->
?hasjournal:bool ->
?journaldev:bool ->
?largefile:bool ->
?quota:bool ->
?resizeinode:bool -> ?sparsesuper:bool -> ?uninitbg:bool -> string -> unitcreate an ext2/ext3/ext4 filesystem on device
method mke2fs_J : string -> int -> string -> string -> unitGuestfs.guestfs.mke2fs insteadmake ext2/3/4 filesystem with external journal
method mke2fs_JL : string -> int -> string -> string -> unitGuestfs.guestfs.mke2fs insteadmake ext2/3/4 filesystem with external journal
method mke2fs_JU : string -> int -> string -> string -> unitGuestfs.guestfs.mke2fs insteadmake ext2/3/4 filesystem with external journal
This function depends on the feature "linuxfsuuid". See also Guestfs.guestfs.feature_available.
method mke2journal : int -> string -> unit
method mke2journal_L : int -> string -> string -> unitGuestfs.guestfs.mke2fs insteadmake ext2/3/4 external journal with label
method mke2journal_U : int -> string -> string -> unitGuestfs.guestfs.mke2fs insteadmake ext2/3/4 external journal with UUID
This function depends on the feature "linuxfsuuid". See also Guestfs.guestfs.feature_available.
method mkfifo : int -> string -> unitmake FIFO (named pipe)
This function depends on the feature "mknod". See also Guestfs.guestfs.feature_available.
method mkfs : ?blocksize:int ->
?features:string ->
?inode:int -> ?sectorsize:int -> ?label:string -> string -> string -> unitmake a filesystem
method mkfs_opts : ?blocksize:int ->
?features:string ->
?inode:int -> ?sectorsize:int -> ?label:string -> string -> string -> unitalias for Guestfs.guestfs.mkfs
method mkfs_b : string -> int -> string -> unit
method mkfs_btrfs : ?allocstart:int64 ->
?bytecount:int64 ->
?datatype:string ->
?leafsize:int ->
?label:string ->
?metadata:string -> ?nodesize:int -> ?sectorsize:int -> string array -> unitcreate a btrfs filesystem
This function depends on the feature "btrfs". See also Guestfs.guestfs.feature_available.
method mklost_and_found : string -> unitmake lost+found directory on an ext2/3/4 filesystem
method mkmountpoint : string -> unitcreate a mountpoint
method mknod : int -> int -> int -> string -> unitmake block, character or FIFO devices
This function depends on the feature "mknod". See also Guestfs.guestfs.feature_available.
method mknod_b : int -> int -> int -> string -> unitmake block device node
This function depends on the feature "mknod". See also Guestfs.guestfs.feature_available.
method mknod_c : int -> int -> int -> string -> unitmake char device node
This function depends on the feature "mknod". See also Guestfs.guestfs.feature_available.
method mksquashfs : ?compress:string -> ?excludes:string array -> string -> string -> unitcreate a squashfs filesystem
This function depends on the feature "squashfs". See also Guestfs.guestfs.feature_available.
method mkswap : ?label:string -> ?uuid:string -> string -> unitcreate a swap partition
method mkswap_opts : ?label:string -> ?uuid:string -> string -> unitalias for Guestfs.guestfs.mkswap
method mkswap_L : string -> string -> unit
method mkswap_U : string -> string -> unitGuestfs.guestfs.mkswap insteadcreate a swap partition with an explicit UUID
This function depends on the feature "linuxfsuuid". See also Guestfs.guestfs.feature_available.
method mkswap_file : string -> unitcreate a swap file
method mktemp : ?suffix:string -> string -> stringcreate a temporary file
method modprobe : string -> unitload a kernel module
This function depends on the feature "linuxmodules". See also Guestfs.guestfs.feature_available.
method mount : string -> string -> unitmount a guest disk at a position in the filesystem
method mount_local : ?readonly:bool ->
?options:string -> ?cachetimeout:int -> ?debugcalls:bool -> string -> unitmount on the local filesystem
method mount_local_run : unit -> unitrun main loop of mount on the local filesystem
method mount_loop : string -> string -> unitmount a file using the loop device
method mount_options : string -> string -> string -> unitmount a guest disk with mount options
method mount_ro : string -> string -> unitmount a guest disk, read-only
method mount_vfs : string -> string -> string -> string -> unitmount a guest disk with mount options and vfstype
method mountable_device : string -> stringextract the device part of a mountable
method mountable_subvolume : string -> stringextract the subvolume part of a mountable
method mountpoints : unit -> (string * string) listshow mountpoints
method mounts : unit -> string arrayshow mounted filesystems
method mv : string -> string -> unitmove a file
method nr_devices : unit -> intreturn number of whole block devices (disks) added
method ntfs_3g_probe : bool -> string -> intprobe NTFS volume
This function depends on the feature "ntfs3g". See also Guestfs.guestfs.feature_available.
method ntfscat_i : string -> int64 -> string -> unitdownload a file to the local machine given its inode
method ntfsclone_in : string -> string -> unitrestore NTFS from backup file
This function depends on the feature "ntfs3g". See also Guestfs.guestfs.feature_available.
method ntfsclone_out : ?metadataonly:bool ->
?rescue:bool ->
?ignorefscheck:bool ->
?preservetimestamps:bool -> ?force:bool -> string -> string -> unitsave NTFS to backup file
This function depends on the feature "ntfs3g". See also Guestfs.guestfs.feature_available.
method ntfsfix : ?clearbadsectors:bool -> string -> unitfix common errors and force Windows to check NTFS
This function depends on the feature "ntfs3g". See also Guestfs.guestfs.feature_available.
method ntfsresize : ?size:int64 -> ?force:bool -> string -> unitresize an NTFS filesystem
This function depends on the feature "ntfsprogs". See also Guestfs.guestfs.feature_available.
method ntfsresize_opts : ?size:int64 -> ?force:bool -> string -> unitalias for Guestfs.guestfs.ntfsresize
This function depends on the feature "ntfsprogs". See also Guestfs.guestfs.feature_available.
method ntfsresize_size : string -> int64 -> unitGuestfs.guestfs.ntfsresize insteadresize an NTFS filesystem (with size)
This function depends on the feature "ntfsprogs". See also Guestfs.guestfs.feature_available.
method parse_environment : unit -> unitparse the environment and set handle flags accordingly
method parse_environment_list : string array -> unitparse the environment and set handle flags accordingly
method part_add : string -> string -> int64 -> int64 -> unitadd a partition to the device
method part_del : string -> int -> unitdelete a partition
method part_disk : string -> string -> unitpartition whole disk with a single primary partition
method part_expand_gpt : string -> unitmove backup GPT header to the end of the disk
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_get_bootable : string -> int -> boolreturn true if a partition is bootable
method part_get_disk_guid : string -> stringget the GUID of a GPT-partitioned disk
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_get_gpt_attributes : string -> int -> int64get the attribute flags of a GPT partition
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_get_gpt_guid : string -> int -> stringget the GUID of a GPT partition
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_get_gpt_type : string -> int -> stringget the type GUID of a GPT partition
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_get_mbr_id : string -> int -> intget the MBR type byte (ID byte) from a partition
method part_get_mbr_part_type : string -> int -> stringget the MBR partition type
method part_get_name : string -> int -> stringget partition name
method part_get_parttype : string -> stringget the partition table type
method part_init : string -> string -> unitcreate an empty partition table
method part_list : string -> partition arraylist partitions on a device
method part_resize : string -> int -> int64 -> unitresize a partition
method part_set_bootable : string -> int -> bool -> unitmake a partition bootable
method part_set_disk_guid : string -> string -> unitset the GUID of a GPT-partitioned disk
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_set_disk_guid_random : string -> unitset the GUID of a GPT-partitioned disk to random value
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_set_gpt_attributes : string -> int -> int64 -> unitset the attribute flags of a GPT partition
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_set_gpt_guid : string -> int -> string -> unitset the GUID of a GPT partition
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_set_gpt_type : string -> int -> string -> unitset the type GUID of a GPT partition
This function depends on the feature "gdisk". See also Guestfs.guestfs.feature_available.
method part_set_mbr_id : string -> int -> int -> unitset the MBR type byte (ID byte) of a partition
method part_set_name : string -> int -> string -> unitset partition name
method part_to_dev : string -> stringconvert partition name to device name
method part_to_partnum : string -> intconvert partition name to partition number
method ping_daemon : unit -> unitping the guest daemon
method pread : string -> int -> int64 -> stringread part of a file
method pread_device : string -> int -> int64 -> stringread part of a device
method pvchange_uuid : string -> unitgenerate a new random UUID for a physical volume
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvchange_uuid_all : unit -> unitgenerate new random UUIDs for all physical volumes
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvcreate : string -> unitcreate an LVM physical volume
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvremove : string -> unitremove an LVM physical volume
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvresize : string -> unitresize an LVM physical volume
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvresize_size : string -> int64 -> unitresize an LVM physical volume (with size)
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvs : unit -> string arraylist the LVM physical volumes (PVs)
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvs_full : unit -> lvm_pv arraylist the LVM physical volumes (PVs)
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method pvuuid : string -> stringget the UUID of a physical volume
method pwrite : string -> string -> int64 -> intwrite to part of a file
method pwrite_device : string -> string -> int64 -> intwrite to part of a device
method read_file : string -> stringread a file
method read_lines : string -> string arrayread file as lines
method readdir : string -> dirent arrayread directories entries
method readlink : string -> stringread the target of a symbolic link
method readlinklist : string -> string array -> string arrayreadlink on multiple files
method realpath : string -> stringcanonicalized absolute pathname
method remount : ?rw:bool -> string -> unitremount a filesystem with different options
method remove_drive : string -> unitremove a disk image
method removexattr : string -> string -> unitremove extended attribute of a file or directory
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method rename : string -> string -> unitrename a file on the same filesystem
method resize2fs : string -> unitresize an ext2, ext3 or ext4 filesystem
method resize2fs_M : string -> unitresize an ext2, ext3 or ext4 filesystem to the minimum size
method resize2fs_size : string -> int64 -> unitresize an ext2, ext3 or ext4 filesystem (with size)
method rm : string -> unitremove a file
method rm_f : string -> unitremove a file ignoring errors
method rm_rf : string -> unitremove a file or directory recursively
method rmdir : string -> unitremove a directory
method rmmountpoint : string -> unitremove a mountpoint
method rsync : ?archive:bool -> ?deletedest:bool -> string -> string -> unitsynchronize the contents of two directories
This function depends on the feature "rsync". See also Guestfs.guestfs.feature_available.
method rsync_in : ?archive:bool -> ?deletedest:bool -> string -> string -> unitsynchronize host or remote filesystem with filesystem
This function depends on the feature "rsync". See also Guestfs.guestfs.feature_available.
method rsync_out : ?archive:bool -> ?deletedest:bool -> string -> string -> unitsynchronize filesystem with host or remote filesystem
This function depends on the feature "rsync". See also Guestfs.guestfs.feature_available.
method scrub_device : string -> unitscrub (securely wipe) a device
This function depends on the feature "scrub". See also Guestfs.guestfs.feature_available.
method scrub_file : string -> unitscrub (securely wipe) a file
This function depends on the feature "scrub". See also Guestfs.guestfs.feature_available.
method scrub_freespace : string -> unitscrub (securely wipe) free space
This function depends on the feature "scrub". See also Guestfs.guestfs.feature_available.
method selinux_relabel : ?force:bool -> string -> string -> unitrelabel parts of the filesystem
This function depends on the feature "selinuxrelabel". See also Guestfs.guestfs.feature_available.
method set_append : string option -> unitadd options to kernel command line
method set_attach_method : string -> unit
method set_autosync : bool -> unitset autosync mode
method set_backend : string -> unitset the backend
method set_backend_setting : string -> string -> unitset a single per-backend settings string
method set_backend_settings : string array -> unitreplace per-backend settings strings
method set_cachedir : string option -> unitset the appliance cache directory
method set_direct : bool -> unitenable or disable direct appliance mode
method set_e2attrs : ?clear:bool -> string -> string -> unitset ext2 file attributes of a file
method set_e2generation : string -> int64 -> unitset ext2 file generation of a file
method set_e2label : string -> string -> unit
method set_e2uuid : string -> string -> unit
method set_hv : string -> unitset the hypervisor binary
method set_identifier : string -> unitset the handle identifier
method set_label : string -> string -> unitset filesystem label
method set_libvirt_requested_credential : int -> string -> unitpass requested credential back to libvirt
method set_libvirt_supported_credentials : string array -> unitset libvirt credentials supported by calling program
method set_memsize : int -> unitset memory allocated to the hypervisor
method set_network : bool -> unitset enable network flag
method set_path : string option -> unitset the search path
method set_pgroup : bool -> unitset process group flag
method set_program : string -> unitset the program name
method set_qemu : string option -> unit
method set_recovery_proc : bool -> unitenable or disable the recovery process
method set_selinux : bool -> unitGuestfs.guestfs.selinux_relabel insteadset SELinux enabled or disabled at appliance boot
method set_smp : int -> unitset number of virtual CPUs in appliance
method set_tmpdir : string option -> unitset the temporary directory
method set_trace : bool -> unitenable or disable command traces
method set_uuid : string -> string -> unitset the filesystem UUID
method set_uuid_random : string -> unitset a random UUID for the filesystem
method set_verbose : bool -> unitset verbose mode
method setcon : string -> unitGuestfs.guestfs.selinux_relabel insteadset SELinux security context
This function depends on the feature "selinux". See also Guestfs.guestfs.feature_available.
method setxattr : string -> string -> int -> string -> unitset extended attribute of a file or directory
This function depends on the feature "linuxxattrs". See also Guestfs.guestfs.feature_available.
method sfdisk : string -> int -> int -> int -> string array -> unit
method sfdiskM : string -> string array -> unit
method sfdisk_N : string -> int -> int -> int -> int -> string -> unitGuestfs.guestfs.part_add insteadmodify a single partition on a block device
method sfdisk_disk_geometry : string -> stringdisplay the disk geometry from the partition table
method sfdisk_kernel_geometry : string -> stringdisplay the kernel geometry
method sfdisk_l : string -> string
method sh : string -> stringrun a command via the shell
method sh_lines : string -> string arrayrun a command via the shell returning lines
method shutdown : unit -> unitshutdown the hypervisor
method sleep : int -> unitsleep for some seconds
method stat : string -> stat
method statns : string -> statnsget file information
method statvfs : string -> statvfsget file system statistics
method strings : string -> string arrayprint the printable strings in a file
method strings_e : string -> string -> string arrayprint the printable strings in a file
method swapoff_device : string -> unitdisable swap on device
method swapoff_file : string -> unitdisable swap on file
method swapoff_label : string -> unitdisable swap on labeled swap partition
method swapoff_uuid : string -> unitdisable swap on swap partition by UUID
This function depends on the feature "linuxfsuuid". See also Guestfs.guestfs.feature_available.
method swapon_device : string -> unitenable swap on device
method swapon_file : string -> unitenable swap on file
method swapon_label : string -> unitenable swap on labeled swap partition
method swapon_uuid : string -> unitenable swap on swap partition by UUID
This function depends on the feature "linuxfsuuid". See also Guestfs.guestfs.feature_available.
method sync : unit -> unitsync disks, writes are flushed through to the disk image
method syslinux : ?directory:string -> string -> unitinstall the SYSLINUX bootloader
This function depends on the feature "syslinux". See also Guestfs.guestfs.feature_available.
method tail : string -> string arrayreturn last 10 lines of a file
method tail_n : int -> string -> string arrayreturn last N lines of a file
method tar_in : ?compress:string ->
?xattrs:bool -> ?selinux:bool -> ?acls:bool -> string -> string -> unitunpack tarfile to directory
method tar_in_opts : ?compress:string ->
?xattrs:bool -> ?selinux:bool -> ?acls:bool -> string -> string -> unitalias for Guestfs.guestfs.tar_in
method tar_out : ?compress:string ->
?numericowner:bool ->
?excludes:string array ->
?xattrs:bool -> ?selinux:bool -> ?acls:bool -> string -> string -> unitpack directory into tarfile
method tar_out_opts : ?compress:string ->
?numericowner:bool ->
?excludes:string array ->
?xattrs:bool -> ?selinux:bool -> ?acls:bool -> string -> string -> unitalias for Guestfs.guestfs.tar_out
method tgz_in : string -> string -> unit
method tgz_out : string -> string -> unit
method touch : string -> unitupdate file timestamps or create a new file
method truncate : string -> unittruncate a file to zero size
method truncate_size : string -> int64 -> unittruncate a file to a particular size
method tune2fs : ?force:bool ->
?maxmountcount:int ->
?mountcount:int ->
?errorbehavior:string ->
?group:int64 ->
?intervalbetweenchecks:int ->
?reservedblockspercentage:int ->
?lastmounteddirectory:string ->
?reservedblockscount:int64 -> ?user:int64 -> string -> unitadjust ext2/ext3/ext4 filesystem parameters
method tune2fs_l : string -> (string * string) listget ext2/ext3/ext4 superblock details
method txz_in : string -> string -> unitGuestfs.guestfs.tar_in insteadunpack compressed tarball to directory
This function depends on the feature "xz". See also Guestfs.guestfs.feature_available.
method txz_out : string -> string -> unitGuestfs.guestfs.tar_out insteadpack directory into compressed tarball
This function depends on the feature "xz". See also Guestfs.guestfs.feature_available.
method umask : int -> intset file mode creation mask (umask)
method umount : ?force:bool -> ?lazyunmount:bool -> string -> unitunmount a filesystem
method umount_opts : ?force:bool -> ?lazyunmount:bool -> string -> unitalias for Guestfs.guestfs.umount
method umount_all : unit -> unitunmount all filesystems
method umount_local : ?retry:bool -> unit -> unitunmount a locally mounted filesystem
method upload : string -> string -> unitupload a file from the local machine
method upload_offset : string -> string -> int64 -> unitupload a file from the local machine with offset
method user_cancel : unit -> unitcancel the current upload or download operation
method utimens : string -> int64 -> int64 -> int64 -> int64 -> unitset timestamp of a file with nanosecond precision
method utsname : unit -> utsnameappliance kernel version
method version : unit -> versionget the library version number
method vfs_label : string -> stringget the filesystem label
method vfs_minimum_size : string -> int64get minimum filesystem size
method vfs_type : string -> stringget the Linux VFS type corresponding to a mounted device
method vfs_uuid : string -> stringget the filesystem UUID
method vg_activate : bool -> string array -> unitactivate or deactivate some volume groups
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vg_activate_all : bool -> unitactivate or deactivate all volume groups
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vgchange_uuid : string -> unitgenerate a new random UUID for a volume group
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vgchange_uuid_all : unit -> unitgenerate new random UUIDs for all volume groups
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vgcreate : string -> string array -> unitcreate an LVM volume group
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vglvuuids : string -> string arrayget the LV UUIDs of all LVs in the volume group
method vgmeta : string -> stringget volume group metadata
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vgpvuuids : string -> string arrayget the PV UUIDs containing the volume group
method vgremove : string -> unitremove an LVM volume group
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vgrename : string -> string -> unitrename an LVM volume group
method vgs : unit -> string arraylist the LVM volume groups (VGs)
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vgs_full : unit -> lvm_vg arraylist the LVM volume groups (VGs)
This function depends on the feature "lvm2". See also Guestfs.guestfs.feature_available.
method vgscan : unit -> unitGuestfs.guestfs.lvm_scan insteadrescan for LVM physical volumes, volume groups and logical volumes
method vguuid : string -> stringget the UUID of a volume group
method wait_ready : unit -> unitwait until the hypervisor launches (no op)
method wc_c : string -> intcount characters in a file
method wc_l : string -> intcount lines in a file
method wc_w : string -> intcount words in a file
method wipefs : string -> unitwipe a filesystem signature from a device
This function depends on the feature "wipefs". See also Guestfs.guestfs.feature_available.
method write : string -> string -> unitcreate a new file
method write_append : string -> string -> unitappend content to end of file
method write_file : string -> string -> int -> unit
method xfs_admin : ?extunwritten:bool ->
?imgfile:bool ->
?v2log:bool ->
?projid32bit:bool ->
?lazycounter:bool -> ?label:string -> ?uuid:string -> string -> unitchange parameters of an XFS filesystem
This function depends on the feature "xfs". See also Guestfs.guestfs.feature_available.
method xfs_growfs : ?datasec:bool ->
?logsec:bool ->
?rtsec:bool ->
?datasize:int64 ->
?logsize:int64 ->
?rtsize:int64 -> ?rtextsize:int64 -> ?maxpct:int -> string -> unitexpand an existing XFS filesystem
This function depends on the feature "xfs". See also Guestfs.guestfs.feature_available.
method xfs_info : string -> xfsinfoget geometry of XFS filesystem
This function depends on the feature "xfs". See also Guestfs.guestfs.feature_available.
method xfs_repair : ?forcelogzero:bool ->
?nomodify:bool ->
?noprefetch:bool ->
?forcegeometry:bool ->
?maxmem:int64 ->
?ihashsize:int64 ->
?bhashsize:int64 ->
?agstride:int64 -> ?logdev:string -> ?rtdev:string -> string -> intrepair an XFS filesystem
This function depends on the feature "xfs". See also Guestfs.guestfs.feature_available.
method yara_destroy : unit -> unitdestroy previously loaded yara rules
This function depends on the feature "libyara". See also Guestfs.guestfs.feature_available.
method yara_load : string -> unitload yara rules within libguestfs
This function depends on the feature "libyara". See also Guestfs.guestfs.feature_available.
method yara_scan : string -> yara_detection arrayscan a file with the loaded yara rules
This function depends on the feature "libyara". See also Guestfs.guestfs.feature_available.
method zegrep : string -> string -> string array
method zegrepi : string -> string -> string array
method zero : string -> unitwrite zeroes to the device
method zero_device : string -> unitwrite zeroes to an entire device
method zero_free_space : string -> unitzero free space in a filesystem
method zerofree : string -> unitzero unused inodes and disk blocks on ext2/3 filesystem
This function depends on the feature "zerofree". See also Guestfs.guestfs.feature_available.
method zfgrep : string -> string -> string array
method zfgrepi : string -> string -> string array
method zfile : string -> string -> stringGuestfs.guestfs.file insteaddetermine file type inside a compressed file
method zgrep : string -> string -> string array
method zgrepi : string -> string -> string array