[Libguestfs] [PATCH 1/3] guestfs_find: Document protocol limits for this API call.
Richard W.M. Jones
rjones at redhat.com
Mon Oct 19 17:23:39 UTC 2009
--
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
-------------- next part --------------
>From aa3ddf71e9fe08ee246da7c2a6b570db031c6eaf Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Mon, 19 Oct 2009 16:57:54 +0100
Subject: [PATCH 1/3] guestfs_find: Document protocol limits for this API call.
guestfs_find has to send the complete list of files in a single
protocol message (hence, limited to 2-4 MB). Unfortunately on
a typical Linux guest, guestfs_find ("/") will exceed this limit
resulting in an error.
Therefore we should add an unlimited version of this call in a
future commit. This commit just documents the current limit.
---
src/generator.ml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/generator.ml b/src/generator.ml
index 4f03c06..74890b4 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -2488,7 +2488,7 @@ C<resize2fs> sometimes gives an error about this and sometimes not.
In any case, it is always safe to call C<guestfs_e2fsck_f> before
calling this function.");
- ("find", (RStringList "names", [Pathname "directory"]), 107, [],
+ ("find", (RStringList "names", [Pathname "directory"]), 107, [ProtocolLimitWarning],
[InitBasicFS, Always, TestOutputList (
[["find"; "/"]], ["lost+found"]);
InitBasicFS, Always, TestOutputList (
--
1.6.5.rc2
More information about the Libguestfs
mailing list