summaryrefslogtreecommitdiffstats
path: root/perl/t
Commit message (Collapse)AuthorAgeFilesLines
* Use mount-options instead of mount to avoid implicit -o sync.Richard Jones2010-02-101-1/+1
| | | | | | | | | | | | | | | guestfs_mount adds -o sync implicitly. This causes a very large performance problem for write-intensive programs (eg. virt-v2v). Document this as a "gotcha". Change the tests, guestfish, Sys::Guestfs::Lib, guestmount to use mount-options instead. (Note that this gotcha does not affect mount-ro). The source of the performance problem was first identified by Matthew Booth.
* Generic partition creation interface.Richard Jones2009-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a generic partition creation interface which should be future-proof and extensible, and partially replaces the old sfdisk-based interface. The implementation is based on parted but is hopefully not too dependent on the particulars of parted. The following new calls are introduced: guestfs_part_init: Initialize a disk with a partition table. Unlike the sfdisk- based interface, we also support GPT and other partition types, which is essential to scale to devices larger than 2TB. guestfs_part_add: Add a partition to an existing disk. guestfs_part_disk: Convenience function which combines part_init & part_add, creating a single partition that covers the whole disk. guestfs_part_set_bootable: guestfs_part_set_name: Set various aspects of existing partitions. guestfs_part_list: List partitions on a device. This returns a programming-friendly list of partition structs (in contrast to sfdisk-l which cannot be parsed). guestfs_part_get_parttype: Return the partition table type, eg. "msdos" or "gpt". The following calls are planned, but not added currently: guestfs_part_get_bootable guestfs_part_get_name guestfs_part_set_type guestfs_part_get_type
* Remove guestfs_wait_ready (turn it into a no-op).Richard Jones2009-09-213-9/+3
| | | | | | | | | | | | | | This commit changes guestfs_launch so that it both launches the appliance and waits until it is ready (ie. the daemon communicates back to us). Since we removed the pretence that we could implement a low-level asynchronous API, the need to call launch() followed by wait_ready() has looked a bit silly. Now guestfs_wait_ready() is basically a no-op. It is left in the API for backwards compatibility. Any calls to guestfs_wait_ready() can be removed from client code.
* tests: Found three more references to the squashfs, replaced with ISO.Richard W.M. Jones2009-08-191-2/+2
|
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-032-6/+6
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* Lib.pm: Skip tests if perl-libintl module is not available.Richard Jones2009-07-292-2/+23
|
* Lib.pm: Add file_architecture command.Richard Jones2009-07-292-0/+88
| | | | | This command detects the architecture of some types of binaries, libraries, kernel modules and initrd images.
* Add 'readdir' call.Richard W.M. Jones2009-07-021-0/+63
| | | | | | | | | | | | This adds a readdir call (mostly intended for programs). The return value is a list of guestfs_dirent structures. This adds the new types 'struct guestfs_dirent' and 'struct guestfs_dirent_list', along with all the code to return these in the different language bindings. Also includes additional tests for OCaml and Perl bindings to test this.
* Add the test0* functions, used to test language bindings.Richard W.M. Jones2009-05-281-1/+1
|
* Additional test programs for Perl, Python, OCaml bindings.Richard Jones2009-04-131-1/+1
|
* Lots, mainly Python bindings.Richard Jones2009-04-131-0/+60
|
* Added more Perl bindings tests.Richard Jones2009-04-083-7/+78
|
* Fixed Perl bindings, they now work properly.Richard Jones2009-04-083-0/+77