summaryrefslogtreecommitdiffstats
path: root/perl
Commit message (Collapse)AuthorAgeFilesLines
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-034-362/+362
| | | | | | | | | | | 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 : $_'
* Cleanup whitespace warnings in Lib.pmMatthew Booth2009-08-031-4/+4
|
* Use grub entries to find Linux kernelsMatthew Booth2009-08-031-89/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds grub parsing to Lib.pm. It adds the following structure to $os: {boot} ->{configs} ->[0] ->{title} = "Fedora (2.6.29.6-213.fc11.i686.PAE)" ->{kernel} = \kernel ->{cmdline} = "ro root=/dev/mapper/vg_mbooth-lv_root rhgb" ->{initrd} = \initrd ->{default} = 0 The kernel and initrd entries are just references to their top level entries under kernels and initrd_modules respectively. It also changes the way Linux kernels and initrd are discovered. Instead of searching /lib/modules and /boot for files with matching names, kernels and initrds are scanned as they are discovered in grub.conf. Additionally, the following attributes are added to the kernels top level entry: * path The path to the kernel's vmlinuz file. * package The name of the package which installed the kernel. The xml output of virt-inspector is updated to reflect all of the above changes.
* Update incorrect comment in Lib.pmMatthew Booth2009-07-311-10/+8
| | | | | Related: change the name of the function the comment describes to be more accurate.
* On RHEL 5, 'file' command prints 'AMD x86-64' for 'x86-64' arch.Richard W.M. Jones2009-07-291-0/+2
|
* Run cpio with --quiet option so it doesn't print 'xx blocks'Richard Jones2009-07-291-1/+1
|
* Lib.pm: Skip tests if perl-libintl module is not available.Richard Jones2009-07-292-2/+23
|
* Lib.pm: Use Perl backtick instead of slurp (Aron Griffis).Richard Jones2009-07-291-3/+1
|
* inspector: Determine guest architecture.Richard Jones2009-07-291-3/+61
| | | | | | | This commit adds kernel and userspace architecture detection (fully for Linux, partially for Windows). It adds an architecture for each kernel detected, and an architecture for each root (ie. userspace) found.
* Lib.pm: Add file_architecture command.Richard Jones2009-07-293-2/+247
| | | | | This command detects the architecture of some types of binaries, libraries, kernel modules and initrd images.
* Lib: Document the $ro parameter for mount_operating_system properly.Richard Jones2009-07-291-4/+5
|
* Lib.pm: Use 'file' as replacement for 'zfile'.Richard Jones2009-07-281-4/+4
|
* Make read-only optional in mount_operating_system()Matthew Booth2009-07-241-2/+10
|
* Split $os->{version} into $os->{major_version} and $os->{minor_version}Matthew Booth2009-07-211-14/+36
|
* virt-inspector --fish: Fix incorrect '-a' parameter (RHBZ#512709)Richard Jones2009-07-201-6/+6
| | | | | | | | | | | | | | | | | virt-inspector --fish dom virt-inspector --ro-fish dom Both of the above commands give incorrect results if run on a libvirt domain, eg: $ virt-inspector --ro-fish RHEL54Betax64 ==> --ro -a RHEL54Betax64 -m /dev/VolGroup00/LogVol00:/ -m /dev/sda1:/boot ^^^^^^^^^^^^^ This is because the current code just prints back the original @ARGV parameters. This patch fixes this by getting the image names instead.
* Replace 'distrofamily' with feature tagsMatthew Booth2009-07-201-9/+30
| | | | | | | | | | | | | It turns out that the distribution hierarchy is not as reliable concept as you might think. This patch removes distrofamily again. Instead of distrofamily, we will add feature tags. This patch adds 2 feature tags for Linux distributions: package_format (eg rpm/dpkg) package_management (eg rhn/yum/apt) This change is reflected in the output of virt-inspector
* Differentiate 'distro' and 'distrofamily' in Sys::Guestfs::LibMatthew Booth2009-07-171-12/+46
| | | | | | | | | | | | | | | Change distro in the output formally known as virt-inspector to reflect the actual distro. Possible values are now: fedora, rhel, centos, scientific, debian. Add new distrofamily entry which is one of: redhat, debian. Currently all distros except 'debian' are in the redhat family. This allows you to, for example, select a RHEL/CentOS/Scientific Linux specific kernel for installation rather than assuming they're all the same. Note this also changes the behaviour of virt-inspector --query. It will now only return rhel=yes for RHEL.
* Fix for non-srcdir builds: more misc fixes.Richard Jones2009-07-161-1/+3
|
* More misc fixes to non-srcdir builds.Richard Jones2009-07-161-0/+5
|
* Make Perl strings translatable using perl-libintl.Richard Jones2009-07-151-17/+32
| | | | | | | | | All Perl strings are now marked as translatable using __"string" or __x("string {placeholder}", placeholder => $_). Perl strings now get copied to the PO files. The po/POTFILES.in file is now updated automagically whenever we add new *.c, *.pl or *.pm files into the repository.
* Ignore old-style initrd which is a compressed ext2 filesystem.Richard Jones2009-07-131-8/+14
| | | | | | | 'cpio' chokes on these, taking ages to decide that they are not cpio files, and producing masses of messages. This was causing virt-inspector to be very slow (many minutes) on RHEL 3 guests. With this fix, speed is back to normal.
* Sys::Guestfs::Lib: Exit with error if a libvirt domain appears to have no disks.Richard W.M. Jones2009-07-101-0/+3
|
* virt-df: Recognise libvirt domains with file-backed disks.Richard W.M. Jones2009-07-101-0/+1
| | | | | File-backed disks (<source file="...">) didn't get recognised before. This patch fixes the problem.
* Move 'use File::Temp' from virt-inspector program to Sys::Guestfs::Lib.Richard Jones2009-07-101-0/+1
|
* Rename internal subroutines with leading underscore character.Richard Jones2009-07-101-29/+29
| | | | | Otherwise Pod::Coverage in the tests will complain that the internal subroutines are undocumented.
* '$_' should be marked as a local variable in Sys::Guestfs::Lib::open_guest.Richard Jones2009-07-101-0/+1
|
* Sys::Guestfs::Lib minor documentation clean-up.Richard Jones2009-07-091-1/+5
|
* Move the inspection analysis code into Sys::Guestfs::Lib library.Richard Jones2009-07-091-2/+941
| | | | | | | | | | | Creates new functions: inspect_all_partitions inspect_partition inspect_operating_systems mount_operating_system inspect_in_detail Includes far more documentation for the process.
* Move 'resolve_windows_path' to Sys::Guestfs::Lib.Richard Jones2009-07-091-1/+57
|
* Move 'get_partitions' call into Sys::Guestfs::Lib.Richard Jones2009-07-091-1/+38
|
* Add Sys::Guestfs::Lib - useful functions for using libguestfs from Perl.Richard Jones2009-07-093-0/+226
| | | | | | | | | | This adds an extra Perl module called Sys::Guestfs::Lib which adds useful functions for using libguestfs from Perl. The intention is that common code shared between virt-inspector, virt-df and virt-v2v will move into this library. This patch also changes virt-inspector to use this library.
* Make it possible to build in a separate directoryMatthew Booth2009-07-032-4/+5
| | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* Remove generated code from git.Richard W.M. Jones2009-07-023-4692/+0
| | | | | | | | Git users now require the OCaml compiler in order to regenerate the generated code after a checkout. Generated code will remain in the tarball, so users of the source tarball will not need the OCaml compiler.
* Add 'readdir' call.Richard W.M. Jones2009-07-023-9/+106
| | | | | | | | | | | | 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.
* Generated code for the virtio_blk change.Richard W.M. Jones2009-07-011-2/+7
|
* Generated code for mknod, mkfifo, mknod_b, mknod_c, umask.Richard W.M. Jones2009-06-302-0/+110
|
* Generated code for 'set_memsize'/'get_memsize' calls.Richard W.M. Jones2009-06-302-0/+49
|
* Generated code for the 'mkswap*' commands.Richard W.M. Jones2009-06-292-0/+47
|
* Generated code for mount-loop command.Richard W.M. Jones2009-06-292-0/+18
|
* Generated code for 'initrd-list'.Richard W.M. Jones2009-06-292-0/+31
|
* Generated code for 'du' command.Richard W.M. Jones2009-06-292-0/+26
|
* Generated code for df / df-h.Richard W.M. Jones2009-06-292-0/+45
|
* Generated code for head/tail commands.Richard W.M. Jones2009-06-292-4/+128
|
* Generated code for 'wc_*' commands.Richard W.M. Jones2009-06-292-0/+57
|
* Clarify documentation for mkdtemp.Richard W.M. Jones2009-06-241-3/+6
|
* Generated code for 'mkdtemp' command.Richard W.M. Jones2009-06-242-0/+33
|
* Fix dependencies in perl so it doesn't always rebuildMatthew Booth2009-06-242-3/+6
|
* Generated code for 'scrub-*' commands.Richard W.M. Jones2009-06-232-1/+68
|
* Generated code for 'glob-expand'.Richard Jones2009-06-222-0/+32
|
* Generated code for 'sh' and 'sh-lines' commands.Richard Jones2009-06-222-1/+61
|