All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] qemu qemu-img.c
@ 2007-10-24 16:11 Thiemo Seufer
  0 siblings, 0 replies; 8+ messages in thread
From: Thiemo Seufer @ 2007-10-24 16:11 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Thiemo Seufer <ths>	07/10/24 16:11:42

Modified files:
	.              : qemu-img.c 

Log message:
	Fix typo, spotted by Edivaldo de Araujo Pereira.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.21&r2=1.22

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Qemu-devel] qemu qemu-img.c
@ 2008-02-10 14:10 Andrzej Zaborowski
  0 siblings, 0 replies; 8+ messages in thread
From: Andrzej Zaborowski @ 2008-02-10 14:10 UTC (permalink / raw)
  To: qemu-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Andrzej Zaborowski <balrog>	08/02/10 14:10:32

Modified files:
	.              : qemu-img.c 

Log message:
	Correct qemu-img usage hint (Andreas Färber).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.28&r2=1.29

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Qemu-devel] qemu qemu-img.c
@ 2007-11-11  3:33 Paul Brook
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Brook @ 2007-11-11  3:33 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Paul Brook <pbrook>	07/11/11 03:33:14

Modified files:
	.              : qemu-img.c 

Log message:
	Cleanup qemu-img.c.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.24&r2=1.25

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Qemu-devel] qemu qemu-img.c
@ 2007-10-31  1:11 Andrzej Zaborowski
  0 siblings, 0 replies; 8+ messages in thread
From: Andrzej Zaborowski @ 2007-10-31  1:11 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Andrzej Zaborowski <balrog>	07/10/31 01:11:44

Modified files:
	.              : qemu-img.c 

Log message:
	Support multipart images as input to qemu-img (Salvador Fandino).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.22&r2=1.23

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Qemu-devel] qemu qemu-img.c
@ 2007-02-10 22:59 Thiemo Seufer
  0 siblings, 0 replies; 8+ messages in thread
From: Thiemo Seufer @ 2007-02-10 22:59 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Thiemo Seufer <ths>	07/02/10 22:59:40

Modified files:
	.              : qemu-img.c 

Log message:
	qemu-img: fix incorrect error message, by Stuart Brady.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.16&r2=1.17

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Qemu-devel] qemu qemu-img.c
@ 2006-08-07 21:33 Fabrice Bellard
  0 siblings, 0 replies; 8+ messages in thread
From: Fabrice Bellard @ 2006-08-07 21:33 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Fabrice Bellard <bellard>	06/08/07 21:33:22

Modified files:
	.              : qemu-img.c 

Log message:
	copyright update

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.12&r2=1.13

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Qemu-devel] qemu qemu-img.c
@ 2006-08-01 15:51 Fabrice Bellard
  0 siblings, 0 replies; 8+ messages in thread
From: Fabrice Bellard @ 2006-08-01 15:51 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Fabrice Bellard <bellard>	06/08/01 15:51:11

Modified files:
	.              : qemu-img.c 

Log message:
	show backing file name

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.10&r2=1.11

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Qemu-devel] qemu qemu-img.c
@ 2006-06-14 15:32 Fabrice Bellard
  0 siblings, 0 replies; 8+ messages in thread
From: Fabrice Bellard @ 2006-06-14 15:32 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/sources/qemu
Module name:	qemu
Changes by:	Fabrice Bellard <bellard>	06/06/14 15:32:10

Modified files:
	.              : qemu-img.c 

Log message:
	show real allocated disk image size on Windows (Frediano Ziglio)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/qemu-img.c?cvsroot=qemu&r1=1.8&r2=1.9

Patches:
Index: qemu-img.c
===================================================================
RCS file: /sources/qemu/qemu/qemu-img.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- qemu-img.c	24 Jul 2005 18:44:55 -0000	1.8
+++ qemu-img.c	14 Jun 2006 15:32:10 -0000	1.9
@@ -23,6 +23,10 @@
  */
 #include "vl.h"
 
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
 void *get_mmap_addr(unsigned long size)
 {
     return NULL;
@@ -598,7 +602,19 @@
 #ifdef _WIN32
 static int64_t get_allocated_file_size(const char *filename)
 {
+    typedef DWORD (WINAPI * get_compressed_t)(const char *filename, DWORD *high);
+    get_compressed_t get_compressed;
     struct _stati64 st;
+
+    /* WinNT support GetCompressedFileSize to determine allocate size */
+    get_compressed = (get_compressed_t) GetProcAddress(GetModuleHandle("kernel32"), "GetCompressedFileSizeA");
+    if (get_compressed) {
+    	DWORD high, low;
+    	low = get_compressed(filename, &high);
+    	if (low != 0xFFFFFFFFlu || GetLastError() == NO_ERROR)
+	    return (((int64_t) high) << 32) + low;
+    }
+
     if (_stati64(filename, &st) < 0) 
         return -1;
     return st.st_size;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-02-10 14:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-24 16:11 [Qemu-devel] qemu qemu-img.c Thiemo Seufer
  -- strict thread matches above, loose matches on Subject: below --
2008-02-10 14:10 Andrzej Zaborowski
2007-11-11  3:33 Paul Brook
2007-10-31  1:11 Andrzej Zaborowski
2007-02-10 22:59 Thiemo Seufer
2006-08-07 21:33 Fabrice Bellard
2006-08-01 15:51 Fabrice Bellard
2006-06-14 15:32 Fabrice Bellard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.