[PATCH libguestfs] build: tell gnulib-tool that this is an lgplv2+ library
by Jim Meyering
This merely enforces (wrt gnulib) the existing convention that
libguestfs is covered by LGPLv2+ .
>From 99a8fab0fa0474b4ab3959a5bd5867779a1d08d6 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Mon, 26 Oct 2009 16:01:06 +0100
Subject: [PATCH libguestfs] build: tell gnulib-tool that this is an lgplv2+ library
* bootstrap: Invoke gnulib-tool with --lgpl=2.
---
bootstrap | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/bootstrap b/bootstrap
index c92d1e1..a4ea29d 100755
--- a/bootstrap
+++ b/bootstrap
@@ -77,6 +77,7 @@ warnings
'
$gnulib_tool \
+ --lgpl=2 \
--avoid=dummy \
--with-tests \
--m4-base=m4 \
--
1.6.5.2.344.ga473e
15 years
[PATCH 0/3] Handle NTFS 3g case sensitive Windows paths in the daemon
by Richard W.M. Jones
In the current Perl library we have a function called
resolve_windows_path which handles the useful [for Windows guests]
case where we need to resolve the true, case-sensitive path behind a
case-insensitive Windows path.
For example, a Windows path like "C:\Windows\System32" can be
presented to Linux by NTFS 3g in a variety of ways, eg:
/WINDOWS/system32
/WINDOWS/SYSTEM32
depending entirely on the inconsequential details of how it was
originally created. Windows doesn't care about case sensitivity, but
NTFS 3g does.
Since resolve_windows_path is a very useful function, the first patch
moves it into the daemon. The new API is called
"guestfs_case_sensitive_path".
The second patch adds some useful functionality to guestfish, so you
can use Windows-style paths, like this:
touch win:C:\windows\foo
(Note that all ordinary paths must begin with a '/' char, so this
can't conflict with any existing, working scripts).
The third patch deprecates resolve_windows_path in the Perl code and
replaces it with calls to $g->case_sensitive_path.
Rich.
--
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
[PATCH 0/2] New API: case_sensitive_path
by Richard W.M. Jones
This is the previously controversial 1/3 patch, split into two parts.
The first patch contains these changes from last time:
- set errno = 0 before readdir, and check for errors after
- check for other errors from the chdir call which weren't ENOTDIR
- the documentation is clarified about when you might use this function
- more comprehensive tests, including the corner cases Matt mentioned.
The second patch changes the chdir(2) implementation to use openat/
fdopendir. I'm not convinced that this is a good thing since the
chdir implementation is much clearer to understand, and the chance of
the daemon ever becoming multithreaded is next to nil.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
15 years
[PATCH] Fall back if /sbin/start_udev fails
by Charles Duffy
Howdy.
I have an appliance in which /sbin/start_udev exists but does not run
successfully:
/sbin/start_udev: line 36: /etc/init.d/functions: No such file or directory
This prevents the "modprobe virtio_net" line (among other things) from
being invoked. The attached patch is what I'm applying locally to
libguestfs-1.0.74 to work around the impact of this issue.
15 years
[PATCH 1/3] Add guestfs_find0 API call which doesn't have limits
by Richard W.M. Jones
The current guestfs_find API call contains an undocumented limit: It
needs to marshall the whole list of filenames into a single protocol
message.
Unfortunately just about any Linux guest breaks this limit if you try
'guestfs_find ("/")' so this isn't much use.
These patches add a new API call (find0) which breaks this limit by
using a FileOut parameter. It's slightly harder to use than
guestfs_find, but better suited to program cases (guestfs_find
remains, of course).
We also update virt-ls to use this in the 'virt-ls -R' case.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
15 years
[PATCH 0/5] Add new tools virt-tar and virt-ls and tidy up the tools code
by Richard W.M. Jones
This patch series starts by tidying up the code for the virt-cat,
virt-df, virt-edit, etc tools, moving them into a single directory and
making the build system much simpler as a consequence.
Then we add two new tools, virt-tar (a general purpose archive and
upload tool) and virt-ls (for listing directories).
No new functionality is enabled by these tools -- that is to say, you
can do everything that these tools do using guestfish -- but having
separate programs and manual pages for them should make them more
accessible for simple tasks to some users.
Rich.
.gitignore | 7 +-
HACKING | 18 +--
Makefile.am | 24 ++--
cat/Makefile.am | 45 ------
cat/run-cat-locally | 52 -------
cat/virt-cat | 194 ------------------------
configure.ac | 25 +---
df/Makefile.am | 45 ------
df/run-df-locally | 52 -------
df/virt-df | 366 ---------------------------------------------
edit/Makefile.am | 45 ------
edit/run-edit-locally | 52 -------
edit/virt-edit | 210 --------------------------
guestfish.pod | 4 +-
po/POTFILES.in | 10 +-
rescue/Makefile.am | 45 ------
rescue/run-rescue-locally | 53 -------
rescue/virt-rescue | 169 ---------------------
tools/Makefile.am | 50 ++++++
tools/run-locally | 56 +++++++
tools/virt-cat | 194 ++++++++++++++++++++++++
tools/virt-df | 366 +++++++++++++++++++++++++++++++++++++++++++++
tools/virt-edit | 213 ++++++++++++++++++++++++++
tools/virt-ls | 242 ++++++++++++++++++++++++++++++
tools/virt-rescue | 173 +++++++++++++++++++++
tools/virt-tar | 275 ++++++++++++++++++++++++++++++++++
26 files changed, 1603 insertions(+), 1382 deletions(-)
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
15 years