diff options
author | Richard Jones <rjones@redhat.com> | 2009-10-19 16:57:54 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-10-20 10:31:54 +0100 |
commit | 55f5dc6f1195d7dec5687ece3f6e74dde649ff7c (patch) | |
tree | 0c06d5e6d04c6712e2dc68b1366a4a6c0c00d4c8 /src | |
parent | 4dd6b77ff7037ee220b530cefb412ace3d880f61 (diff) | |
download | libguestfs-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-x | src/generator.ml | 2 |
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 ( |