[PATCH] appliance: Add support for btrfs, GFS, GFS2, JFS, HFS, HFS+, NILFS, OCFS2
by Richard W.M. Jones
I've tested all these filesystems here:
http://rwmj.wordpress.com/2009/11/08/filesystem-metadata-overhead/
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
15 years, 1 month
[PATCH 0/2] Two small fixes to command*() functions in the daemon
by Richard W.M. Jones
The command*() functions are sane wrappers we use in the daemon to run
external commands, and therefore very important. These two patches
enhance these functions in useful ways.
(Note these are an internal interface which we can change at any
time).
The first patch adds variations which take a flags parameter, and
implements a useful flag (for dealing with parted).
The second patch stops command*() from eating stderr when the stderror
parameter is NULL and we're in debug mode. Currently vital logging
and error information is being lost in certain circumstances, and this
patch resolves this.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
15 years, 1 month
[PATCH libguestfs] hivex: fail upon integer overflow
by Jim Meyering
This is probably only theoretical, but just the same...
>From 29edcca195d2998ca4a54aacec261752a3bdeb3d Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Tue, 3 Nov 2009 18:50:23 +0100
Subject: [PATCH libguestfs] hivex: fail upon integer overflow
* hivex/hivex.c (windows_utf16_to_utf8): Avoid overflow and a
potential infloop.
---
hivex/hivex.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hivex/hivex.c b/hivex/hivex.c
index b522ccf..9c28679 100644
--- a/hivex/hivex.c
+++ b/hivex/hivex.c
@@ -1031,9 +1031,12 @@ windows_utf16_to_utf8 (/* const */ char *input, size_t len)
size_t r = iconv (ic, &inp, &inlen, &outp, &outlen);
if (r == (size_t) -1) {
if (errno == E2BIG) {
+ size_t prev = outalloc;
/* Try again with a larger output buffer. */
free (out);
outalloc *= 2;
+ if (outalloc < prev)
+ return NULL
goto again;
}
else {
--
1.6.5.2.292.g1cda2
15 years, 1 month
hivex.c: unchecked calloc
by Jim Meyering
Hi Rich,
There's an unchecked calloc in hivex.c's hive_open:
h->bitmap = calloc (1 + h->size / 32, 1);
...
This subsequent deref could cause a segfault:
BITMAP_SET (h->bitmap, blkoff);
15 years, 1 month