]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga: added mountpoint and filesystem type for single volume
authorOlga Krishtal <okrishtal@virtuozzo.com>
Tue, 30 Jun 2015 10:25:21 +0000 (13:25 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 8 Jul 2015 01:14:36 +0000 (20:14 -0500)
commitd2b3f390d4e4b5d9dd74ae703d365a7b75a234ea
treec193fef2e4d4ccf4b2f1eb7ec1aa4c559e4c12b4
parentef0a03f23061b9994fe5b2c3a208bc9fcba0099d
qga: added mountpoint and filesystem type for single volume

We should use GetVolumeXXX api to work with volumes. This will help us to
resolve the situation with volumes without drive letter, i.e. when the
volume is mounted as a folder. Such volume is called mounted folder.
This volume is a regular mounted volume from all other points of view.
The information about non mounted volume is reported as System Reserved.
This volume is not mounted and thus it is not writable.

GuestDiskAddressList API is not used because operations are performed with
volumes but no with disks. This means that spanned disk will
be counted and handled as a single volume. It is worth mentioning
that the information about every disk in the volume can be queried
via IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS.

Signed-off-by: Olga Krishtal <okrishtal@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Eric Blake <eblake@redhat.com>
CC: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c