[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 1/3] Add guestfs_find0 API call which doesn't have limits

The current guestfs_find API call contains an undocumented limit: It
needs to marshall the whole list of filenames into a single protocol

Unfortunately just about any Linux guest breaks this limit if you try
'guestfs_find ("/")' so this isn't much use.

These patches add a new API call (find0) which breaks this limit by
using a FileOut parameter.  It's slightly harder to use than
guestfs_find, but better suited to program cases (guestfs_find
remains, of course).

We also update virt-ls to use this in the 'virt-ls -R' case.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]