Implement virDomainGetBlockInfo in QEMU driver

* src/qemu/qemu_driver.c: Implementation of virDomainGetBlockInfo
* src/util/storage_file.h: Add DEV_BSIZE
* src/storage/storage_backend.c: Remove DEV_BSIZE
This commit is contained in:
Daniel P. Berrange
2010-04-27 20:31:09 +01:00
parent 84a3269a15
commit db57a7bed8
3 changed files with 120 additions and 5 deletions

View File

@@ -51,6 +51,10 @@ typedef struct _virStorageFileMetadata {
bool encrypted;
} virStorageFileMetadata;
# ifndef DEV_BSIZE
# define DEV_BSIZE 512
# endif
int virStorageFileGetMetadata(const char *path,
virStorageFileMetadata *meta);
int virStorageFileGetMetadataFromFD(const char *path,