vhd-0.2: Provides functions to inspect and manipulate virtual hard disk (VHD) files.

Data.Vhd

Synopsis

Documentation

create :: FilePath -> CreateParameters -> IO ()Source

Creates an empty VHD file with the specified parameters.

getInfo :: FilePath -> IO (Either String (Header, Footer))Source

Retrieves the header and footer from a VHD file.

readData :: Vhd -> IO ByteStringSource

Reads data from the whole virtual address space of the given VHD.

readDataRange :: Vhd -> VirtualByteAddress -> VirtualByteCount -> IO ByteStringSource

Reads data from the given virtual address range of the given VHD.

writeDataRange :: Vhd -> VirtualByteAddress -> ByteString -> IO ()Source

Writes data to the given virtual address of the given VHD.

withVhd :: FilePath -> (Vhd -> IO a) -> IO aSource

newtype Cookie Source

Constructors

Cookie ByteString 

Instances

newtype UniqueId Source

Constructors

UniqueId ByteString 

Instances