summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-10-19 16:57:54 +0100
committerRichard Jones <rjones@redhat.com>2009-10-20 10:31:54 +0100
commit55f5dc6f1195d7dec5687ece3f6e74dde649ff7c (patch)
tree0c06d5e6d04c6712e2dc68b1366a4a6c0c00d4c8 /src
parent4dd6b77ff7037ee220b530cefb412ace3d880f61 (diff)
downloadlibguestfs-55f5dc6f1195d7dec5687ece3f6e74dde649ff7c.tar.gz
libguestfs-55f5dc6f1195d7dec5687ece3f6e74dde649ff7c.tar.xz
libguestfs-55f5dc6f1195d7dec5687ece3f6e74dde649ff7c.zip
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.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 4f03c062..74890b4c 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 (