summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* ruby: In event wrapper, ignore callback functions which have type T_ZOMBIE.Richard W.M. Jones2012-07-261-2/+7
| | | | Note that in old versions of Ruby, T_ZOMBIE was not defined.
* ruby: Set LD_LIBRARY_PATH for Ruby libs in run script.Richard W.M. Jones2012-07-251-0/+1
| | | | | This lets you use './run gdb ruby ...' and get accurate debugging information.
* sparsify: Detect qemu-img version and use qcow2 v3 for overlay if available.Richard W.M. Jones2012-07-251-1/+41
| | | | | | | | | qcow2 v3 is generally more efficient, although unfortunately it doesn't support automatically sparsifying zero writes. Note this *only* uses qcow2 v3 for the intermediate overlay file, not for the final output (since we want the output to be broadly compatible with old hypervisors).
* sparsify: Change code that generates qemu-img -o argument.Richard W.M. Jones2012-07-251-7/+9
| | | | This is just code motion.
* sysprep: Generate new random UUIDs for LVM2 PVs and VGs (thanks Kazuo Moriwaka).Richard W.M. Jones2012-07-254-4/+56
|
* New APIs: pvchange-uuid, pvchange-uuid-all, vgchange-uuid, vgchange-uuid-all.Richard W.M. Jones2012-07-253-1/+147
| | | | | | | | These APIs will allow sysprep to change the UUIDs of all PVs and VGs in the system. LVs don't have UUIDs AFAICT, or at least there seems to be no way to change them if they do have them.
* sysprep: Change perform callback to perform_on_filesystems and ↵Richard W.M. Jones2012-07-2533-40/+115
| | | | | | | | | perform_on_devices. Operations that need to work directly on guest block devices will fail because the block devices are busy. Therefore add a phase with the filesystems unmounted, and allow operations to specify that they need to work in this phase.
* fish: Use minimal permissions when initially creating history fileMatthew Booth2012-07-251-1/+1
|
* sysprep: Tidy up the Makefile.Richard W.M. Jones2012-07-251-60/+12
| | | | This is just code motion.
* sysprep: operation machine-id: return `Created_files.Richard W.M. Jones2012-07-251-1/+1
| | | | | | | This operation can create the /etc/machine-id file, so it may need to be relabelled by SELinux. This fixes commit e68336d72a7d71a44d80f0d13c40ff44653e5c01.
* sysprep: remove the local machine IDWanlong Gao2012-07-254-3/+50
| | | | | | | | | | | remove the local machine ID, leave it empty, let it be generated during next booting. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Whitespace change. - Remove completed items from TODO.
* sysprep: remove the auto generated abrt dataWanlong Gao2012-07-253-0/+49
| | | | | | | | | | remove the automatically generated abrt data. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Remove copy and pasted line. - Use C<> in description.
* Mac OS X: Use u_int64_t/uint64_t instead of unsigned hyper in .x fileMasami HIRATA2012-07-244-12/+53
| | | | | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com> RWMJ: Fixed whitespace in generator_xdr.ml
* Mac OS X: Use libtool --mode=execute instead of LD_LIBRARY_PATHMasami HIRATA2012-07-241-8/+8
| | | | | | because Mac OS X doesn't support LD_LIBRARY_PATH Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Mac OS X: Use gnulib stat-time module explicitly.Masami HIRATA2012-07-241-0/+1
| | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* lib: Use <sys/socket.h> and <sys/un.h> for sockaddr_unMasami HIRATA2012-07-242-0/+4
| | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Mac OS X: Use real files for gtk-doc (not the symlink)Masami HIRATA2012-07-242-2/+347
| | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Mac OS X: don't check glibc-style extended printf formatters unless ↵Masami HIRATA2012-07-241-16/+16
| | | | | | | | | | --enable-daemon Signed-off-by: Masami HIRATA <msmhrt@gmail.com> RWMJ: - Test was in the wrong place (before --enable-daemon had been detected) so I moved it later.
* Mac OS X: #define UNIX_PATH_MAX 104Masami HIRATA2012-07-241-0/+4
| | | | | | See http://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man4/unix.4.html Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Mac OS X: Added check of #include <endian.h>Masami HIRATA2012-07-247-0/+21
| | | | | | Mac OS X doesn't have endian.h Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Mac OS X: Use gnulib fstatat module explicitly.Masami HIRATA2012-07-242-0/+2
| | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Mac OS X: Use gnulib memmem module explicitly.Masami HIRATA2012-07-242-0/+2
| | | | | | m4/.gitignore: Update. Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* configure: Use $(PERL) instead of perlMasami HIRATA2012-07-241-10/+10
| | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* configure: Add -nographic command line option to qemu.Masami HIRATA2012-07-241-4/+4
| | | | | | Without this option, configure will fail when there is no display. Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Version 1.19.25.1.19.25Richard W.M. Jones2012-07-2420-4413/+4834
|
* launch: libvirt: Suppress printing of libvirt errors to stderr and other ↵Richard W.M. Jones2012-07-241-4/+19
| | | | cleanups.
* launch: libvirt: Use SELinux-mandated directory for sockets (RHBZ#842307).Richard W.M. Jones2012-07-241-31/+147
| | | | | | Note this does not yet enable sVirt confinement of the appliance. That requires at least that SELinux policy goes upstream, plus there may still be bugs.
* todo: More suggestions for virt-sysprep (thanks Kazuo Moriwaka).Richard W.M. Jones2012-07-241-0/+19
|
* launch: libvirt: Move free to end of function.Richard W.M. Jones2012-07-241-11/+6
| | | | This is just code motion.
* launch: libvirt: Add is_blk utility.Richard W.M. Jones2012-07-241-6/+12
| | | | This is just code motion.
* umount: use Dev_or_Path for the argument typeWanlong Gao2012-07-242-4/+1
| | | | | | | | | | | | | | Use Dev_or_Path instead of String. Remove the RESOLVE_DEVICE since Dev_or_Path will generate REQUIRE_ROOT_OR_RESOLVE_DEVICE instead. RWMJ: Note a change in semantics: this now requires root. However this is OK and still works with mkmountpoint and friends because 'is_root_mounted' works even if something is mounted below the root. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* launch: libvirt: Set <emulator> in libvirt XML if g->qemu is not the default.Richard W.M. Jones2012-07-241-0/+9
|
* xfs-info: Fix description to refer to 'pathordevice' param.Richard W.M. Jones2012-07-241-2/+2
|
* xfs_info: resolve device when doing xfs_info on a deviceWanlong Gao2012-07-242-14/+9
| | | | | | | Resolve device first, like do_umount. Use Dev_or_Path. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* umount: add force umount and lazy umountWanlong Gao2012-07-244-16/+41
| | | | | | Add the option force and lazy for force and lazy umount. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* Version 1.19.24.1.19.24Richard W.M. Jones2012-07-2320-3478/+4319
|
* tests: Skip regression test for 790721 if attach-method is not 'appliance'.Richard W.M. Jones2012-07-231-0/+25
|
* lib: Initialize libvirt and libxml2 once when the library loads.Richard W.M. Jones2012-07-233-15/+36
|
* launch: Make get-pid and max-disks APIs into virtual methods of the current ↵Richard W.M. Jones2012-07-234-29/+73
| | | | attach-method.
* tests: Move debug-drives testing API to launch.c and change the output.Richard W.M. Jones2012-07-234-28/+38
| | | | It should work with any attach-method.
* python: Set file encoding to utf-8.Richard W.M. Jones2012-07-231-0/+5
|
* tests/protocol: Skip these tests if default attach-method is not 'appliance'.Richard W.M. Jones2012-07-233-0/+15
|
* tests: Fix get-attach-method test.Richard W.M. Jones2012-07-231-2/+2
| | | | | | | | If ./configure --with-default-attach-method is set to something other than 'appliance', then this will legitimately return a different string. Simply test that it runs, rather than testing the output. This fixes commit 20a5b4de7ddc4221544784df65eb472481698dcb.
* tests: Remove get-pid test.Richard W.M. Jones2012-07-231-4/+1
| | | | | If the libvirt attach-method is used, then there is no known PID (libvirt hides it).
* launch: libvirt: Use <driver name="qemu" type=[format] />.Richard W.M. Jones2012-07-232-3/+100
| | | | | | | | We were using format= which was bogus and libvirt was ignoring it and forcing raw format instead. Also in its default configuration libvirt won't do disk format autodetection at all, so we must do it instead.
* launch: libvirt: You can't set O_CLOEXEC flag using fcntl + F_SETFL.Richard W.M. Jones2012-07-231-1/+1
| | | | | | | And in any case there is no point, since proto.c already sets the SOCK_CLOEXEC flag (using accept4) on this socket. The code now matches the code in launch-appliance.c.
* launch: libvirt: Use accept4 to set socket flags correctly.Richard W.M. Jones2012-07-231-5/+1
|
* launch: libvirt: Add <on_reboot>destroy</on_reboot> to libvirt XML.Richard W.M. Jones2012-07-231-0/+17
| | | | | This causes libvirt to add the qemu -no-reboot option, which reflects existing behaviour.
* launch: Allow default attach-method to be set in environment or configure.Richard W.M. Jones2012-07-235-9/+85
| | | | | | | | | | You can now choose the default attach method in two ways: (1) Set the LIBGUESTFS_ATTACH_METHOD environment variable. (2) ./configure --with-default-attach-method=appliance|libvirt|... Note that (1) overrides (2).
* java: Set '-encoding utf8' for javac and javadoc commands.Richard W.M. Jones2012-07-232-2/+3
|