+Fri Apr 3 10:02:57 EDT 2009 Cole Robinson <crobinso@redhat.com>
+
+ * src/storage_backend.c: Fix sparse volume allocation reporting.
+
Fri Apr 3 15:07:00 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Fix crash in svirt verification, and incorrect cleanup in
#include <fcntl.h>
#include <stdint.h>
#include <sys/stat.h>
+#include <sys/param.h>
#include <dirent.h>
#if HAVE_SELINUX
#include "storage_backend_fs.h"
#endif
+#ifndef DEV_BSIZE
+#define DEV_BSIZE 512
+#endif
#define VIR_FROM_THIS VIR_FROM_STORAGE
if (S_ISREG(sb.st_mode)) {
#ifndef __MINGW32__
*allocation = (unsigned long long)sb.st_blocks *
- (unsigned long long)sb.st_blksize;
+ (unsigned long long)DEV_BSIZE;
#else
*allocation = sb.st_size;
#endif