From 55f5dc6f1195d7dec5687ece3f6e74dde649ff7c Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 19 Oct 2009 16:57:54 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) 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.8.3.1