disk_format


Description:

[ Version ( since = "1.19.38" ) ]
public string disk_format (string filename) throws Error

detect the disk format of a disk image

Detect and return the format of the disk image called filename. filename can also be a host device, etc. If the format of the image could not be detected, then "unknown" is returned.

Note that detecting the disk format can be insecure under some circumstances. See "CVE-2010-3851" in guestfs(3).

See also: "DISK IMAGE FORMATS" in guestfs(3)

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error