>From aa3ddf71e9fe08ee246da7c2a6b570db031c6eaf Mon Sep 17 00:00:00 2001 From: Richard Jones 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 sometimes gives an error about this and sometimes not. In any case, it is always safe to call C 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