summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* virt-df: Don't fail immediately if a disk is not accessible (RHBZ#789504).Richard W.M. Jones2012-05-031-44/+80
|
* virt-alignment-scan: Don't fail immediately if a disk is not accessible ↵Richard W.M. Jones2012-05-031-9/+27
| | | | (RHBZ#789504).
* virt-alignment-scan, virt-df: Add newlines after error messages.Richard W.M. Jones2012-05-032-11/+11
|
* virt-make-fs: Add a test of btrfs (regression test for RHBZ#816098).Richard W.M. Jones2012-05-031-0/+4
|
* virt-make-fs: Simplify test code.Richard W.M. Jones2012-05-031-38/+32
| | | | This is just code motion.
* virt-make-fs: Fix estimation when making btrfs (RHBZ#816098).Richard W.M. Jones2012-05-031-1/+12
| | | | | This also disables data and metadata duplication, which is not very useful on a constructed filesystem on a virtual disk.
* virt-make-fs: Use mount instead of mount_options.Richard W.M. Jones2012-05-031-1/+1
|
* virt-make-fs: Fix filesystem type check when estimating ntfs.Richard W.M. Jones2012-05-031-1/+1
|
* tests: Regression test for RHBZ#701814.Richard W.M. Jones2012-05-037-0/+257
| | | | | | | | | | | | | | | | | This commit adds a tests/xml directory, and an LD_PRELOAD module which can fake arbitrary libvirt XML from an external file (and is therefore a much more flexible test than using the libvirt test:// driver alone). Also added is one regression test for: https://bugzilla.redhat.com/show_bug.cgi?id=701814 Loading the given libvirt XML using Sys::Guestfs::Lib::open_guest used to fail with the error: format parameter is empty or contains disallowed characters at /home/rjones/d/libguestfs/perl/blib/lib/Sys/Guestfs/Lib.pm line 256. Thanks to Tom Horsley for supplying the test data.
* perl: Don't fail if 'type' (disk format) attribute is missing in libvirt XML ↵Richard W.M. Jones2012-05-031-1/+5
| | | | | | | | | | | | | | | | | | | | (RHBZ#701814). Old versions of libvirt allowed you to define disks like this: <disk type='file' device='disk'> <driver name='qemu'/> ... Since the <driver> element does not have a 'type' attribute (which defines the format), we are supposed to do autodetection, so the format should be undefined. However what actually happened was that the code in Sys::Guestfs::Lib::open_guest received format as an empty string from the xpath query, causing libguestfs to give an error. If the xpath query returns the format as an empty string, undefine it.
* fish: Add a regression test for the 'glob' command.Richard W.M. Jones2012-05-022-0/+107
|
* fish: glob command now expands /dev/ patterns (RHBZ#635971).Richard W.M. Jones2012-05-022-3/+146
| | | | | | | | | | | | | For example: ><fs> glob echo /dev/* /dev/vda /dev/vda1 /dev/vda2 /dev/vda3 ><fs> glob echo /dev/v*/* /dev/vg_f16x64/lv_root /dev/vg_f16x64/lv_swap
* fish: Move 'feature_available' function to global.Richard W.M. Jones2012-05-023-20/+20
| | | | This is just code motion.
* fish: Clean up glob code and make it return error if malloc fails.Richard W.M. Jones2012-05-021-39/+54
| | | | | | This commit tidies up the code for the 'glob' command. It also makes the command return an error if malloc fails (previously it would just print a message but not return any error indication).
* fish: Add --pipe-error flag to allow detection of errors in pipe commands ↵Richard W.M. Jones2012-05-022-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (RHBZ#803533). For a test case, see: https://bugzilla.redhat.com/show_bug.cgi?id=803533 In guestfish, we use the gnulib closeout module which sets up an atexit handler to detect if there were any errors on stdout when the program exits. This is so we can fail correctly in out of disk space cases like: guestfish [...] > output However the atexit handler just checks that there was any error on stdout (using ferror). If a pipe command such as: ><fs> command_with_lots_of_output | head ran at any time during the session, the error flag would be set (because the underlying writes failed with EPIPE errors). So the commit first adds a test for ferror (stdout) after each command that we issue. This brings error handling closer to the point of failure, and so is generally a good thing. Secondly we reset the error flag after detecting and dealing with the error, so that avoids the redundant 'guestfish: write error' message produced by gnulib closeout. Thirdly we add a --pipe-error flag which causes guestfish commands to fail on pipe commands line the one above. The default is off for backwards compatibility reasons.
* Update release notes.Richard W.M. Jones2012-05-011-2/+25
|
* Version 1.17.38.1.17.38Richard W.M. Jones2012-05-016-3021/+6378
|
* Turn libguestfs FAQ into a man page: guestfs-faq(1).Richard W.M. Jones2012-05-015-0/+577
|
* doc: Rewrite description section in man page guestfs(3).Richard W.M. Jones2012-05-011-31/+12
| | | | | Make the introduction in the man page shorter and punchier, so it leads readers directly to other pages of interest.
* Version 1.17.37.1.17.37Richard W.M. Jones2012-05-0120-12254/+26728
|
* Add gettext support for OCaml tools (virt-resize, virt-sparsify, virt-sysprep).Richard W.M. Jones2012-05-0138-234/+433
| | | | | | | | Note that this support is optional: To enable it, install the ocaml-gettext library from http://forge.ocamlcore.org/projects/ocaml-gettext . If this library is not installed, then configure detects this and inserts dummy gettext functions that do nothing.
* Remove gettextize.Richard W.M. Jones2012-05-019-527/+122
| | | | | Replace the sociopathic nonsense in gettextize with a simple Makefile.am which does the same ... and is faster.
* Remove "convenience header" "gettext.h" and use <libintl.h> instead.Richard W.M. Jones2012-05-0139-321/+40
| | | | | | | | | | | | gettextize provides a local file called "gettext.h". Remove this and use <libintl.h> from glibc headers instead. Most of this change is mechanical: #include <libintl.h> in every C file which uses any gettext function. But also we remove the gettext.h file, and adjust the "_" macros. Note that this effectively removes the ./configure --disable-nls option, although we don't know if that ever worked.
* configure: There are now more OCaml tools than just virt-resize.Richard W.M. Jones2012-04-301-1/+1
| | | | | virt-resize, virt-sparsify, virt-sysprep are all OCaml tools, so change what is printed in the report.
* configure: Comment fix.Richard W.M. Jones2012-04-301-2/+2
|
* Move 'libguestfs.pc' (pkgconfig file) to src/ directory.Richard W.M. Jones2012-04-305-8/+8
| | | | Since it describes the C library, it's better in the src/ directory.
* todo: virt-sparsify whitelist option.Richard W.M. Jones2012-04-301-0/+7
|
* debug: 'progress' (unsupported debug command) now checks argument is ↵Richard W.M. Jones2012-04-271-1/+5
| | | | | | reasonable (RHBZ#816839). Thanks Yuyu Zhou.
* gobject: Fix installation of headers.Richard W.M. Jones2012-04-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPM build errors: error: Installed (but unpackaged) file(s) found: /usr/include/optargs-add_domain.h /usr/include/optargs-add_drive_opts.h /usr/include/optargs-btrfs_filesystem_resize.h /usr/include/optargs-compress_device_out.h /usr/include/optargs-compress_out.h /usr/include/optargs-copy_device_to_device.h /usr/include/optargs-copy_device_to_file.h /usr/include/optargs-copy_file_to_device.h /usr/include/optargs-copy_file_to_file.h /usr/include/optargs-e2fsck.h /usr/include/optargs-inspect_get_icon.h /usr/include/optargs-md_create.h /usr/include/optargs-mkfs_btrfs.h /usr/include/optargs-mkfs_opts.h /usr/include/optargs-mount_9p.h /usr/include/optargs-mount_local.h /usr/include/optargs-ntfsclone_out.h /usr/include/optargs-ntfsfix.h /usr/include/optargs-ntfsresize_opts.h /usr/include/optargs-set_e2attrs.h /usr/include/optargs-test0.h /usr/include/optargs-tune2fs.h /usr/include/optargs-umount_local.h /usr/include/session.h /usr/include/struct-application.h /usr/include/struct-btrfssubvolume.h /usr/include/struct-dirent.h /usr/include/struct-inotify_event.h /usr/include/struct-int_bool.h /usr/include/struct-isoinfo.h /usr/include/struct-lvm_lv.h /usr/include/struct-lvm_pv.h /usr/include/struct-lvm_vg.h /usr/include/struct-mdstat.h /usr/include/struct-partition.h /usr/include/struct-stat.h /usr/include/struct-statvfs.h /usr/include/struct-version.h /usr/include/struct-xattr.h /usr/include/tristate.h We want to put these headers into the subdirectory, but not guestfs-gobject.h. This isn't easy with automake.
* gobject: Fix whitespace in Makefile.am.Richard W.M. Jones2012-04-271-2/+2
|
* sysprep: Remove the data of dovecotWanlong Gao2012-04-272-0/+45
| | | | | | Remove the data of dovecot. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* sysprep: remove the logfiles configured by logrotateWanlong Gao2012-04-271-0/+21
| | | | | | | | Remove the logfiles configured by /etc/logrotate.d/*. Omit the logfile of "samba" and "sssd" which we removed them separately . Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* Version 1.17.36.1.17.36Richard W.M. Jones2012-04-2620-8621/+8785
|
* btrfs: Fix btrfs test so it works with btrfs-progs in Rawhide.Richard W.M. Jones2012-04-261-12/+12
| | | | See: http://bugzilla.redhat.com/816346
* lib: Remove the BUSY state.Richard W.M. Jones2012-04-267-113/+46
| | | | | | | | | | | | | | | Originally this state was intended so that in some way you could find out if the appliance was running a command. However there was never a thread-safe way to access the state of the handle, so in effect you could never do anything useful safely with this information. This commit completely removes the BUSY state. The only visible change is to the guestfs_is_busy API. Previously you could never call this safely from another thread. If you called it from the same thread it would always return false (since the current thread can't be running a libguestfs command at that point by definition). Now it always returns false.
* gobject: Use generator_built macro to ensure generated files are rebuilt ↵Richard W.M. Jones2012-04-263-9/+13
| | | | properly.
* gobject: Move headers into a subdirectoryMatthew Booth2012-04-267-137/+144
| | | | | | | | | The gobject bindings generate a large number of header files, which pollute /usr/include when installed. This patch moves them all into a guestfs-gobject/ subdirectory. guestfs-gobject.h remains in the same place. This change also moves generated source files into src/, because it makes the gobject directory a bit tidier.
* btrfs: Fix docs for btrfs_subvolume_set_default (thanks Matt Booth).Richard W.M. Jones2012-04-261-1/+1
| | | | This fixes commit 87ea7a04094d5ed40f3f047ff2b7a613d4d530d4.
* gobject: Implement libguestfs events as signalsMatthew Booth2012-04-262-1/+220
| | | | | | | | | | Implement libguestfs events as GObject signals. Callback arguments are passed in a boxed object. Note that this patch fixes the length of the uint64_t array in the callback arguments at 16, whereas it is actually arbitrary length. This is to make it introspectable. There is currently no way to pass an arbitrary length array to a callback, and have its type introspected.
* gobject: Wrap literal sections in POD in CDATA sectionsMatthew Booth2012-04-261-0/+5
|
* gobject: NFC generated code formatting fixMatthew Booth2012-04-261-1/+1
|
* rescue: Add --scratch option.Richard W.M. Jones2012-04-262-0/+121
| | | | This lets you create temporary scratch disks.
* fish: Add opaque field to the drives list for programs to use.Richard W.M. Jones2012-04-261-0/+5
| | | | Not used at present.
* Version 1.17.35.1.17.35Richard W.M. Jones2012-04-2520-20077/+22286
|
* appliance: Remove some unnecessary errors.Richard W.M. Jones2012-04-251-2/+4
| | | | | | | | | | | | virt-rescue prints errors such as: rm: cannot remove `/proc': Is a directory mkdir: cannot create directory `/proc': File exists rm: cannot remove `/sys': Is a directory mkdir: cannot create directory `/sys': File exists People have reported these errors (which are nothing to worry about) as bugs in the past, so avoid them where possible.
* btrfs: Enhance the btrfs device test.Richard W.M. Jones2012-04-251-2/+37
| | | | This enhances commit 87ea7a04094d5ed40f3f047ff2b7a613d4d530d4.
* tests: Add some more substantial test data.Richard W.M. Jones2012-04-253-0/+2
| | | | | | | | | | | | | The two tarballs: 8252 bytes tests/data/filesanddirs-10M.tar.xz 41152 bytes tests/data/filesanddirs-100M.tar.xz contain, as their names suggest, highly compressed files and directories, with unpacked size respectively around 10M and 100M (the precise size after unpacking depends on the filesystem). These can be used for testing purposes.
* btrfs-device-delete: Use correct (sysroot-prefixed) path to filesystem.Richard W.M. Jones2012-04-252-4/+4
| | | | This fixes commit 87ea7a04094d5ed40f3f047ff2b7a613d4d530d4.
* New btrfs APIs.Richard W.M. Jones2012-04-2513-1/+678
| | | | | | | | | | | | | | | | Bind the easy parts of the 'btrfs' program. The new APIs are: btrfs-device-add: add devices to a btrfs filesystem btrfs-device-delete: remove devices from a btrfs filesystem btrfs-filesystem-sync: sync a btrfs filesystem btrfs-filesystem-balance: balance a btrfs filesystem btrfs-subvolume-create: create a btrfs snapshot btrfs-subvolume-delete: delete a btrfs snapshot btrfs-subvolume-list: list btrfs snapshots and subvolumes btrfs-subvolume-set-default: set default btrfs subvolume btrfs-subvolume-snapshot: create a writable btrfs snapshot
* btrfs: Modify mkfs-btrfs API so it takes a list of devices.Richard W.M. Jones2012-04-252-8/+20
| | | | | | | btrfs filesystems can span multiple filesystems. Note this changes the API, but this API has not yet been released in a stable version of libguestfs.